summaryrefslogtreecommitdiffstats
path: root/src/ck-log.h
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-04-03 11:42:43 -0400
committerWilliam Jon McCann <mccann@jhu.edu>2007-04-03 11:42:43 -0400
commit80dc652115e275a95b05bb6809825cc324d9475a (patch)
tree4981625e90286e7860f63544eb9942367fe208fe /src/ck-log.h
parent02b7dac1de29b7e323d9457f14b639582d0a2e04 (diff)
add a glib message to syslog handler
Also add ability to toggle debugging when SIGUSR1 is received.
Diffstat (limited to 'src/ck-log.h')
-rw-r--r--src/ck-log.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ck-log.h b/src/ck-log.h
new file mode 100644
index 0000000..0028598
--- /dev/null
+++ b/src/ck-log.h
@@ -0,0 +1,41 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
+ *
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Authors: William Jon McCann <mccann@jhu.edu>
+ *
+ */
+
+#ifndef __CK_LOG_H
+#define __CK_LOG_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+void ck_log_default_handler (const gchar *log_domain,
+ GLogLevelFlags log_level,
+ const gchar *message,
+ gpointer unused_data);
+void ck_log_set_debug (gboolean debug);
+void ck_log_toggle_debug (void);
+void ck_log_init (void);
+void ck_log_shutdown (void);
+
+G_END_DECLS
+
+#endif /* __CK_LOG_H */