28 |
#include "config.h" |
#include "config.h" |
29 |
|
|
30 |
#include "buffer.h" |
#include "buffer.h" |
31 |
|
#include "access.h" |
32 |
|
|
33 |
typedef struct |
typedef struct |
34 |
{ |
{ |
35 |
void (*init) (buffer_t *bufin, buffer_t *bufout); |
void (*register_to_engine) (const access_t *); |
36 |
void (*loop) (buffer_t *bufin, buffer_t *bufout, int timeout); |
void (*put_data) (buffer_t *, char *, size_t); |
|
void (*put_data) (buffer_t *buffer, char *data, size_t data_size); |
|
37 |
size_t max_data; |
size_t max_data; |
38 |
} |
} |
39 |
protocol_t; |
protocol_t; |
40 |
|
|
41 |
extern protocol_t *protocol; |
extern const protocol_t *protocol; |
42 |
|
|
43 |
#ifdef WITH_P3 |
#ifdef WITH_P3 |
44 |
extern const protocol_t p3_protocol; |
extern const protocol_t p3_protocol; |