00001 /* ---------------------------------------------------------------------------- 00002 * @(#) $Header: /home/systems/jlewalle/dev/jacob-cvs/projects/state/src/sul/sul_fping.h,v 1.3 2004/04/05 20:58:09 jlewalle Exp $ 00003 * 00004 * --------------------------------------------------------------------------*/ 00005 #if !defined(_INCLUDED_SUL_FPING_H_HEADER__) 00006 #define _INCLUDED_SUL_FPING_H_HEADER__ 00007 00023 typedef struct sul_fping_t 00024 { 00026 apr_pool_t *pool; 00028 sul_exec_t *proc; 00029 } sul_fping_t; 00030 00039 SUL_DECLARE(sul_error_t *) 00040 sul_fping_create(sul_fping_t **self, apr_pool_t *pool); 00041 00051 SUL_DECLARE(sul_error_t *) 00052 sul_fping_spawn(sul_fping_t *self, const char *command); 00053 00062 SUL_DECLARE(sul_error_t *) 00063 sul_fping_ping(sul_fping_t *self, const char *ip); 00064 00078 SUL_DECLARE(sul_error_t *) 00079 sul_fping_get(sul_fping_t *self, char **identity, sul_boolean_t *alive, 00080 float *elapsed, apr_pool_t *pool); 00081 00089 SUL_DECLARE(sul_error_t *) 00090 sul_fping_close(sul_fping_t *self, sul_boolean_t force); 00091 00094 #endif