00001 /* -*-C-*- */ 00002 #ifndef CONNECTION_H 00003 #define CONNECTION_H 00004 00023 typedef struct 00024 { 00025 int fd; 00026 int authOK; 00027 } ConnectionData; 00028 00038 enum AuthMode { 00039 AP_AUTH_NONE, 00040 AP_AUTH_CHANGE, 00041 AP_AUTH_ALL 00042 }; 00043 00044 int connection_check_auth_level(ConnectionData *cd, int level); 00045 void connection_print(ConnectionData *cd, const char* msg); 00046 void connection_println(ConnectionData *cd, const char* msg); 00047 void connection_init(ConnectionData *cd) ; 00048 void connection_printf(ConnectionData *cd, const char *format, ...) ; 00049 00050 00051 00052 00053 #endif