summaryrefslogtreecommitdiffstats
path: root/src/providers/proxy
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-01-10 11:23:33 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-02-24 11:15:06 +0100
commitb668c77874c6fed325471bdcf5954979a0d734e2 (patch)
treef2aa1495fd35dabd42b96dec8d190478cb5d7f26 /src/providers/proxy
parentc2cc119de8eac712c040b3993f41c967ff2278de (diff)
downloadsssd-b668c77874c6fed325471bdcf5954979a0d734e2.tar.gz
sssd-b668c77874c6fed325471bdcf5954979a0d734e2.tar.xz
sssd-b668c77874c6fed325471bdcf5954979a0d734e2.zip
sbus: Use constants to make dbus calls
This allows us to remove duplicated information, and have the compiler check that when an method name is changed or removed the callers are updated. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/providers/proxy')
-rw-r--r--src/providers/proxy/proxy_auth.c4
-rw-r--r--src/providers/proxy/proxy_child.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/proxy/proxy_auth.c b/src/providers/proxy/proxy_auth.c
index c2b792bd8..a901f0f17 100644
--- a/src/providers/proxy/proxy_auth.c
+++ b/src/providers/proxy/proxy_auth.c
@@ -602,8 +602,8 @@ static struct tevent_req *proxy_pam_conv_send(TALLOC_CTX *mem_ctx,
msg = dbus_message_new_method_call(NULL,
DP_PATH,
- DP_INTERFACE,
- DP_METHOD_PAMHANDLER);
+ DATA_PROVIDER_IFACE,
+ DATA_PROVIDER_IFACE_PAMHANDLER);
if (msg == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "dbus_message_new_method_call failed.\n");
talloc_zfree(req);
diff --git a/src/providers/proxy/proxy_child.c b/src/providers/proxy/proxy_child.c
index 737b0cfd6..b99c35317 100644
--- a/src/providers/proxy/proxy_child.c
+++ b/src/providers/proxy/proxy_child.c
@@ -432,8 +432,8 @@ int proxy_child_send_id(struct sbus_connection *conn,
/* create the message */
msg = dbus_message_new_method_call(NULL,
DP_PATH,
- DP_INTERFACE,
- DP_METHOD_REGISTER);
+ DATA_PROVIDER_IFACE,
+ DATA_PROVIDER_IFACE_REGISTERSERVICE);
if (msg == NULL) {
DEBUG(SSSDBG_FATAL_FAILURE, "Out of memory?!\n");
return ENOMEM;