ekg2
|
00001 /* $Id$ */ 00002 00003 #ifndef __EKG_RC_RC_H 00004 #define __EKG_RC_RC_H 00005 00006 typedef enum { 00007 RC_INPUT_PIPE = 1, /* pipe:/home/user/.ekg/pipe */ 00008 RC_INPUT_UDP, /* udp:12345 */ 00009 RC_INPUT_TCP, /* tcp:12345 */ 00010 RC_INPUT_UNIX, /* unix:/home/user/.ekg/socket */ 00011 RC_INPUT_TCP_CLIENT, 00012 RC_INPUT_UNIX_CLIENT 00013 } rc_input_type_t; 00014 00015 typedef struct { 00016 rc_input_type_t type; /* rodzaj wejścia */ 00017 char *path; /* ścieżka */ 00018 int fd; /* deskryptor */ 00019 int mark; /* do zaznaczania, wnętrzności */ 00020 } rc_input_t; 00021 00022 int rc_input_new_tcp(const char *path); 00023 int rc_input_new_udp(const char *path); 00024 int rc_input_new_pipe(const char *path); 00025 int rc_input_new_unix(const char *path); 00026 00027 #endif /* __EKG_RC_RC_H */ 00028 00029 00030 /* 00031 * Local Variables: 00032 * mode: c 00033 * c-file-style: "k&r" 00034 * c-basic-offset: 8 00035 * indent-tabs-mode: t 00036 * End: 00037 */