00001 
00002 
00003 
00004 
00005 #if !defined(_INCLUDED_CHKSVC_INTERNAL_H_HEADER__)
00006 #define _INCLUDED_CHKSVC_INTERNAL_H_HEADER__
00007 
00028 apr_status_t 
00029 chksvc_connection_send(chksvc_frame_t *cf, const char *str, apr_pool_t *pool);
00030 
00044 apr_status_t 
00045 chksvc_connection_receive_until(chksvc_frame_t *cf, const char *str, 
00046                                 apr_pool_t *pool);
00047 
00058 apr_status_t 
00059 chksvc_connection_close(chksvc_frame_t *cf, apr_pool_t *pool);
00060 
00073 apr_status_t 
00074 chksvc_connection_discard(chksvc_frame_t *cf, apr_pool_t *pool);
00075 
00090 #define CHKSVC_GENERAL(service, test, code, str, msg, pool) \
00091   if (test != APR_SUCCESS) return (chksvc_status_create(service, str, code, msg, pool));
00092 
00104 #define CHKSVC_WARNING(test, service, msg, pool) \
00105   CHKSVC_GENERAL(service, test, -1, "WARNING", msg, pool)
00106 
00118 #define CHKSVC_FATAL(test, service, msg, pool) \
00119   CHKSVC_GENERAL(service, test, -2, "FATAL", msg, pool)
00120 
00127 #define CHKSVC_STATUS_SUCCESS(service, pool) \
00128   chksvc_status_create(service, "NORMAL", 0, "Normal", pool)
00129 
00132 #endif