#ifndef __ABAC_UTIL_H__ #define __ABAC_UTIL_H__ #include #include #ifndef ABAC_VERSION #define ABAC_VERSION "0.2.4" #endif #ifdef DEBUG #define DEBUG_PRINTF(...) {if(debug) fprintf(stderr, __VA_ARGS__); } #else #define DEBUG_PRINTF(...) {/*no op*/} #endif /* exported from abac_util */ extern char *abac_version(); extern char *prologIt(char *); extern void *abac_xmalloc(size_t); extern void *abac_xrealloc(void*,size_t); extern char *abac_xstrdup(char*); extern char *abac_trim_quotes(char*); extern void abac_split(char*, char*, char**, int*); extern int abac_validate_clean_name(char*); extern int abac_validate_clean_aspect_name(char*); extern chunk_t abac_generate_serial(); extern void abac_clean_string(char *); extern int file_exist(char*); extern chunk_t extract_potato(char*, char*); extern void abac_errx(int eval, const char *msg); #endif /* __ABAC_UTIL_H__ */