]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Update the windows implementation of logging functions
authorRomain Pokrzywka <romain@kdab.com>
Tue, 16 Mar 2010 23:13:00 +0000 (16:13 -0700)
committerColin Walters <walters@verbum.org>
Wed, 17 Mar 2010 02:15:35 +0000 (22:15 -0400)
Following commit: 04cf3166002a86b9a22851be4e243c87b5b3048d for Unix.

dbus/dbus-sysdeps-util-win.c

index b9ebc82a56ded4be186b57d38f1a3cc1639731d0..2722b01e35c05cb6fd23d9582d5f8618fc71cb42 100644 (file)
@@ -231,27 +231,37 @@ _dbus_init_system_log (void)
 }
 
 /**
- * Log an informative message.  Intended for use primarily by
- * the system bus.
+ * Log a message to the system log file (e.g. syslog on Unix).
  *
+ * @param severity a severity value
  * @param msg a printf-style format string
  * @param args arguments for the format string
+ *
  */
 void
-_dbus_log_info (const char *msg, va_list args)
+_dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...)
 {
-    // FIXME!
+  va_list args;
+
+  va_start (args, msg);
+
+  _dbus_system_logv (severity, msg, args);
+
+  va_end (args);
 }
 
 /**
- * Log a security-related message.  Intended for use primarily by
- * the system bus.
+ * Log a message to the system log file (e.g. syslog on Unix).
  *
+ * @param severity a severity value
  * @param msg a printf-style format string
  * @param args arguments for the format string
+ *
+ * If the FATAL severity is given, this function will terminate the program
+ * with an error code.
  */
 void
-_dbus_log_security (const char *msg, va_list args)
+_dbus_system_logv (DBusSystemLogSeverity severity, const char *msg, va_list args)
 {
     // FIXME!
 }