#ifndef _Z_COMMON_H #define _Z_COMMON_H //system lib includes #include #include #include #include #include #include #include #include #include #include #include #include #include /* for AF_INET */ #include #include //regular expression matching in is_uuid #include #include #include #include #include #include #include #include #include #include //logging #include //new_str #include //system information #include // uname, kernel, etc #include // load, uptime, etc //no longer needed //#include // for MAJOR and MINOR dev numbers //xen includes #include #include #include //block device investigation //#include "blockdata.h" #include "types.h" //struct xs_handle *get_xs_handle(); char *strlwr(char *s); char *new_str(const char *fmt, ...) ; int match_regex(const char* str, const char* regex) ; int is_uuid(char *uuid) ; char *str_append(char *dest, char *source); int log_msg(char *msg); int get_xc_handle(); struct xs_handle *get_xs_handle(); void set_xc_handle(int x); void set_xs_handle(struct xs_handle *xsh); void free_config(config *a); config *get_config(); config *new_config(); int daemonize(int ignsigcld); int detach_daemon(); int make_pidfile(char *filename); char *get_default_vnc_passwd(); #endif