ekg2  GIT master
rc.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 #ifndef __EKG_RC_RC_H
4 #define __EKG_RC_RC_H
5 
6 typedef enum {
7  RC_INPUT_PIPE = 1, /* pipe:/home/user/.ekg/pipe */
8  RC_INPUT_UDP, /* udp:12345 */
9  RC_INPUT_TCP, /* tcp:12345 */
10  RC_INPUT_UNIX, /* unix:/home/user/.ekg/socket */
14 
15 typedef struct {
16  rc_input_type_t type; /* rodzaj wejścia */
17  char *path; /* ścieżka */
18  int fd; /* deskryptor */
19  int mark; /* do zaznaczania, wnętrzności */
20 } rc_input_t;
21 
22 int rc_input_new_tcp(const char *path);
23 int rc_input_new_udp(const char *path);
24 int rc_input_new_pipe(const char *path);
25 int rc_input_new_unix(const char *path);
26 
27 #endif /* __EKG_RC_RC_H */
28 
29 
30 /*
31  * Local Variables:
32  * mode: c
33  * c-file-style: "k&r"
34  * c-basic-offset: 8
35  * indent-tabs-mode: t
36  * End:
37  */
char * path
Definition: rc.h:17
Definition: rc.h:8
Definition: rc.h:9
Definition: rc.h:10
Definition: rc.h:12
rc_input_type_t type
Definition: rc.h:16
int rc_input_new_tcp(const char *path)
Definition: inputs.c:94
int rc_input_new_pipe(const char *path)
Definition: inputs.c:109
rc_input_type_t
Definition: rc.h:6
int rc_input_new_udp(const char *path)
Definition: inputs.c:99
Definition: rc.h:15
int fd
Definition: rc.h:18
Definition: rc.h:7
int rc_input_new_unix(const char *path)
Definition: inputs.c:141
Definition: rc.h:11
int mark
Definition: rc.h:19