Airframe Application Utilities
libairframe 0.7.2 API documentation

Main Page | Data Structures | File List | Data Fields | Globals

daeconfig.h

Go to the documentation of this file.
00001 /*
00002  ** daeconfig.h
00003  ** Generic daemon configuration support
00004  **
00005  ** ------------------------------------------------------------------------
00006  ** Copyright (C) 2005-2007 Carnegie Mellon University. All Rights Reserved.
00007  ** ------------------------------------------------------------------------
00008  ** Authors: Brian Trammell <bht@cert.org>
00009  **          Tony Cebzanov <tonyc@cert.org>
00010  ** ------------------------------------------------------------------------
00011  ** GNU Lesser GPL Rights pursuant to Version 2.1, February 1999 
00012  ** Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013
00013  ** ------------------------------------------------------------------------
00014  */
00015 
00025 /* idem hack */
00026 #ifndef _AIR_DAECONFIG_H_
00027 #define _AIR_DAECONFIG_H_
00028 
00029 #include <airframe/autoinc.h>
00030 #include <airframe/airopt.h>
00031 
00033 #define DAEC_ERROR_DOMAIN g_quark_from_string("airframeDaemonError")
00034 
00038 #define DAEC_ERROR_SETUP  1
00039 
00050 gboolean daec_setup(
00051     GError          **err);
00052 
00061 gboolean daec_add_option_group(AirOptionCtx *aoctx);
00062 
00072 gboolean daec_is_daemon();
00073 
00084 gboolean daec_will_fork();
00085 
00093 gboolean daec_did_fork();
00094 
00103 gboolean daec_did_quit();
00104 
00109 void daec_quit();
00110 
00111 /* end idem */
00112 #endif