18 #include <sys/types.h>
21 typedef unsigned int pid_t;
26 int (*flush)(
void *state);
27 int (*close)(
void *state);
28 int (*print)(
void *state,
const char* s);
29 int (*println)(
void *state,
const char* s);
30 ssize_t (*write)(
void *state,
const void *buf,
size_t count);
31 int (*data_available)(
void *state);
32 char* (*readln)(
void *state,
char* buffer,
int size);
33 int (*supports_reading)(
void *state);
38 ConnectorMethods* methods;
62 } SocketConnectorState;
64 Connector* fgl_report_createFileConnector(FILE *fd);
65 void fgl_report_destroyFileConnector(Connector* connector);
67 Connector* fgl_report_createPipeConnector(
char* command);
68 void fgl_report_destroyPipeConnector(Connector* connector);
70 Connector* fgl_report_createSocketConnector(
const char* host,
int port);
71 void fgl_report_destroySocketConnector(Connector* connector);
74 #define LC_PROCESSING_INSTRUCTION 1
75 #define LC_START_ELEMENT 2
76 #define LC_ATTRIBUTE 3
77 #define LC_CHARACTERS 4
78 #define LC_END_ELEMENT 5
88 ContentHandler* fgl_report_createContentHandlerForConnector(Connector* connector);