diff options
author | Stef Walter <stefw@redhat.com> | 2014-01-10 11:23:33 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-02 18:15:56 +0200 |
commit | f07527b17c700509d632250c1b9c03a8c6c321e5 (patch) | |
tree | f17940f4ee9d793db747bcabd51e55b95ffaedfa /src/providers/proxy | |
parent | cfa913a916da0b1be5b432572bcab98ffa281dd6 (diff) | |
download | sssd-f07527b17c700509d632250c1b9c03a8c6c321e5.tar.gz sssd-f07527b17c700509d632250c1b9c03a8c6c321e5.tar.xz sssd-f07527b17c700509d632250c1b9c03a8c6c321e5.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>
(cherry picked from commit b668c77874c6fed325471bdcf5954979a0d734e2)
Diffstat (limited to 'src/providers/proxy')
-rw-r--r-- | src/providers/proxy/proxy_auth.c | 4 | ||||
-rw-r--r-- | src/providers/proxy/proxy_child.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/proxy/proxy_auth.c b/src/providers/proxy/proxy_auth.c index b28185126..24ed0ccdb 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 395868087..46b55b9b8 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; |