Hostinfo day 1: Mainly documentation.
[virt-hostinfo.git] / hostinfod / hostinfod.h
diff --git a/hostinfod/hostinfod.h b/hostinfod/hostinfod.h
new file mode 100644 (file)
index 0000000..99a1efb
--- /dev/null
@@ -0,0 +1,40 @@
+/* virt-hostinfo
+ * Copyright (C) 2009 Red Hat Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef HOSTINFOD_H
+#define HOSTINFOD_H
+
+#include <apr_general.h>
+
+/* main.c */
+extern const char *conf_file;
+extern const char *socket_dir;
+extern char *guests_file;
+extern int socket_dir_set_on_cmdline;
+extern int debug;
+extern int debug_set_on_cmdline;
+extern int verbose;
+extern int verbose_set_on_cmdline;
+extern int foreground;
+extern int foreground_set_on_cmdline;
+extern apr_pool_t *pool;       /* pool for global memory allocation */
+
+/* configuration.c */
+extern void read_main_conf_file (void);
+
+#endif /* HOSTINFOD_H */