276 |
} *Dependant_T; |
} *Dependant_T; |
277 |
|
|
278 |
|
|
|
/** Defines a checksum object */ |
|
|
typedef struct mychecksum { |
|
|
char *file; /**< A filename to compute a md5 checksum for */ |
|
|
char *md5; /**< A md5 checksum computed for the file */ |
|
|
|
|
|
/** For internal use */ |
|
|
struct mychecksum *next; /**< next checksum in chain */ |
|
|
} *Checksum_T; |
|
|
|
|
|
|
|
279 |
/** Defines a mailinglist object */ |
/** Defines a mailinglist object */ |
280 |
typedef struct mymail { |
typedef struct mymail { |
281 |
char *to; /**< Mail address for alert notification */ |
char *to; /**< Mail address for alert notification */ |
308 |
|
|
309 |
/** Defines timestamp object */ |
/** Defines timestamp object */ |
310 |
typedef struct mytimestamp { |
typedef struct mytimestamp { |
|
char *pathname; /**< Path to the object */ |
|
311 |
int operator; /**< Comparison operator */ |
int operator; /**< Comparison operator */ |
312 |
int time; /**< Timestamp watermark */ |
int time; /**< Timestamp watermark */ |
313 |
int action; /**< Action in case of failure */ |
int action; /**< Action in case of failure */ |
405 |
int has_gid_error; /**< TRUE if the service has a GID error */ |
int has_gid_error; /**< TRUE if the service has a GID error */ |
406 |
int def_every; /**< TRUE if every is defined for the service */ |
int def_every; /**< TRUE if every is defined for the service */ |
407 |
int def_timeout; /**< TRUE if timeout is defined for the service */ |
int def_timeout; /**< TRUE if timeout is defined for the service */ |
408 |
int def_checksum; /**< TRUE if checksum is defined for the service */ |
char *md5; /**< A md5 checksum computed for the path */ |
409 |
int def_procinfo; /**< TRUE if procinfo is defined for the service */ |
int def_procinfo; /**< TRUE if procinfo is defined for the service */ |
410 |
int visited; /**< Service visited flag, set if dependencies are used */ |
int visited; /**< Service visited flag, set if dependencies are used */ |
411 |
int depend_visited;/**< Depend visited flag, set if dependencies are used */ |
int depend_visited;/**< Depend visited flag, set if dependencies are used */ |
413 |
int uid; /**< Owner's uid */ |
int uid; /**< Owner's uid */ |
414 |
int gid; /**< Owner's gid */ |
int gid; /**< Owner's gid */ |
415 |
|
|
|
Checksum_T checksumlist; /**< A list of file associated checksums */ |
|
416 |
Dependant_T dependantlist; /**<Dependant service list */ |
Dependant_T dependantlist; /**<Dependant service list */ |
417 |
Device_T devicelist; /**< Device check list */ |
Device_T devicelist; /**< Device check list */ |
418 |
Mail_T maillist; /**< Alert notification mailinglist */ |
Mail_T maillist; /**< Alert notification mailinglist */ |
490 |
int check_md5(char *, char *); |
int check_md5(char *, char *); |
491 |
char *url_encode(char *uri); |
char *url_encode(char *uri); |
492 |
char *get_basic_authentication_header(); |
char *get_basic_authentication_header(); |
|
int set_md5sum(char **, char *); |
|
493 |
int parse(char *); |
int parse(char *); |
494 |
void control(char *); |
void control(char *); |
495 |
void control_group(char *, char *); |
void control_group(char *, char *); |