summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.hh
blob: 63ac53b840cd96c580815b1743e29c4683066b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* $Id$ */

#ifndef WLPROTO_HH
#define WLPROTO_HH

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

/* Type definitions, to be continued */
#define NETFOUND  01
#define NETLOST   02
#define CMD_FAIL  50
#define CMD_OK    51
#define STARTSNIFF 98
#define STOPSNIFF  99

unsigned int add_field(char *, const char *, int);
unsigned int get_field(const char *, char *, int);
int send_ok(const char *, int, int);
int get_ok(const char *);
int send_fail(const char *, int, int, const char *);
int get_fail(char *, const char *, size_t);
int send_network_found (const char *, int, void *);
int get_network_found (void *, const char *);

#endif /* WLPROTO_HH */