Use D-Bus constants for PolicyKit plugin
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 9 Sep 2010 16:47:25 +0000 (18:47 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 9 Sep 2010 16:47:25 +0000 (18:47 +0200)
include/dbus.h
plugins/polkit.c

index 2ff41b2..4823d8a 100644 (file)
@@ -47,6 +47,9 @@ extern "C" {
 #define CONNMAN_PROVIDER_INTERFACE     CONNMAN_SERVICE ".Provider"
 #define CONNMAN_TECHNOLOGY_INTERFACE   CONNMAN_SERVICE ".Technology"
 
+#define CONNMAN_PRIVILEGE_MODIFY       1
+#define CONNMAN_PRIVILEGE_SECRET       2
+
 typedef void (* connman_dbus_append_cb_t) (DBusMessageIter *iter,
                                                        void *user_data);
 
index be72eb0..137dc9b 100644 (file)
 
 #define CONNMAN_API_SUBJECT_TO_CHANGE
 #include <connman/plugin.h>
-#include <connman/security.h>
+#include <connman/dbus.h>
 
 static const GDBusSecurityTable polkit_security[] = {
-       { CONNMAN_SECURITY_PRIVILEGE_MODIFY, "org.moblin.connman.modify",
+       { CONNMAN_PRIVILEGE_MODIFY, "org.moblin.connman.modify",
                                G_DBUS_SECURITY_FLAG_BUILTIN |
                                G_DBUS_SECURITY_FLAG_ALLOW_INTERACTION },
-       { CONNMAN_SECURITY_PRIVILEGE_SECRET, "org.moblin.connman.secret",
+       { CONNMAN_PRIVILEGE_SECRET, "org.moblin.connman.secret",
                                G_DBUS_SECURITY_FLAG_BUILTIN |
                                G_DBUS_SECURITY_FLAG_ALLOW_INTERACTION },
        { }