ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
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  */