summaryrefslogtreecommitdiff
path: root/dbus/dbus-sysdeps.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-03-15 13:50:48 -0400
committerColin Walters <walters@verbum.org>2010-03-16 15:57:05 -0400
commit04cf3166002a86b9a22851be4e243c87b5b3048d (patch)
tree842b2605eb8ff92acd98da7bb991bdcbc42b3467 /dbus/dbus-sysdeps.h
parente28c0ece17f0cfac1d18527604a67bcba7c3d2cc (diff)
downloaddbus-04cf3166002a86b9a22851be4e243c87b5b3048d.tar.gz
Refactor _dbus_log_info, _dbus_log_security into _dbus_log_system
In preparation for a future patch which introduces a fatal logging level, don't duplicate the API here.
Diffstat (limited to 'dbus/dbus-sysdeps.h')
-rw-r--r--dbus/dbus-sysdeps.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h
index 80f0ba26..4011cab4 100644
--- a/dbus/dbus-sysdeps.h
+++ b/dbus/dbus-sysdeps.h
@@ -439,11 +439,17 @@ dbus_bool_t _dbus_user_at_console (const char *username,
DBusError *error);
void _dbus_init_system_log (void);
-void _dbus_log_info (const char *msg, va_list args);
-void _dbus_log_security (const char *msg, va_list args);
-/* Define DBUS_VA_COPY() to do the right thing for copying va_list variables.
- * config.h may have already defined DBUS_VA_COPY as va_copy or __va_copy.
+typedef enum {
+ DBUS_SYSTEM_LOG_INFO,
+ DBUS_SYSTEM_LOG_SECURITY
+} DBusSystemLogSeverity;
+
+void _dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...);
+void _dbus_system_logv (DBusSystemLogSeverity severity, const char *msg, va_list args);
+
+/* Define DBUS_VA_COPY() to do the right thing for copying va_list variables.
+ * config.h may have already defined DBUS_VA_COPY as va_copy or __va_copy.
*/
#if !defined (DBUS_VA_COPY)
# if defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) || defined (_WIN32))