]> code.delx.au - pulseaudio/blobdiff - src/modules/reserve-monitor.h
virtual-surround: check if resampled memblock is not equal to input
[pulseaudio] / src / modules / reserve-monitor.h
index 4f4a83321092d860edc6b4e7f0ee24ab88105cf3..85a7ebb18b2532b0d6e0d85379c88121ce324a50 100644 (file)
@@ -1,3 +1,5 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: t -*-*/
+
 #ifndef fooreservemonitorhfoo
 #define fooreservemonitorhfoo
 
 ***/
 
 #include <dbus/dbus.h>
-#include <inttypes.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 typedef struct rm_monitor rm_monitor;
 
@@ -40,7 +45,7 @@ typedef void (*rm_change_cb_t)(rm_monitor *m);
  * DBus error might be set as well if the error was caused D-Bus. */
 int rm_watch(
        rm_monitor **m,              /* On success a pointer to the newly allocated rm_device object will be filled in here */
-       DBusConnection *connection,  /* Session bus (when D-Bus learns about user busses we should switchg to user busses) */
+       DBusConnection *connection,  /* Session bus (when D-Bus learns about user busses we should switch to user busses) */
        const char *device_name,     /* The device to monitor, e.g. "Audio0" */
        rm_change_cb_t change_cb,    /* Will be called whenever the lock status changes. May be NULL */
        DBusError *error);           /* If we fail due to a D-Bus related issue the error will be filled in here. May be NULL. */
@@ -59,4 +64,8 @@ void rm_set_userdata(rm_monitor *m, void *userdata);
  * userdata was set. */
 void* rm_get_userdata(rm_monitor *m);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif