summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-03-25 14:10:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-03-25 14:10:32 -0400
commitf9a5229aa7f1eae3a0481a41e88d7edbc15a649c (patch)
treec22015f618fc997cad0777d98086bd2241d9d242 /src/util.h
parent18778b2ad5e0d1fc412600b0f2481dc957359375 (diff)
Refactor logging into separate files
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 0000000..ff5e0df
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,36 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2009-2010 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 3 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Written by: Matthias Clasen <mclasen@redhat.com>
+ */
+
+#ifndef __UTIL_H__
+#define __UTIL_H__
+
+#include <glib.h>
+#include <dbus/dbus-glib.h>
+
+G_BEGIN_DECLS
+
+void sys_log (DBusGMethodInvocation *context,
+ const gchar *format,
+ ...);
+
+G_END_DECLS
+
+#endif /* __UTIL_H__ */