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 2ff41b2aee11c81ccf7f82f4e26c971f48818df3..4823d8ab5e66cda76f0d65f80914f1bca9a35afe 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 be72eb074e3e939b48174cd8f5c9f854d7a34a2f..137dc9b1df79cdbad9cfbf974c55db017021a176 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 },
        { }