From 0507838f0194b37271c52acab1bdfa73af3929da Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Sat, 22 May 2010 10:33:26 -0400 Subject: Make data provider id_callback public --- src/providers/data_provider.h | 1 + src/providers/dp_auth_util.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/providers') diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 951b47ab..4bea0317 100644 --- a/src/providers/data_provider.h +++ b/src/providers/data_provider.h @@ -207,6 +207,7 @@ bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd, int dp_common_send_id(struct sbus_connection *conn, uint16_t version, const char *name); +void dp_id_callback(DBusPendingCall *pending, void *ptr); /* from dp_sbus.c */ int dp_get_sbus_address(TALLOC_CTX *mem_ctx, diff --git a/src/providers/dp_auth_util.c b/src/providers/dp_auth_util.c index e09a6924..97690057 100644 --- a/src/providers/dp_auth_util.c +++ b/src/providers/dp_auth_util.c @@ -236,7 +236,7 @@ bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd, DBusError *db return true; } -static void id_callback(DBusPendingCall *pending, void *ptr) +void dp_id_callback(DBusPendingCall *pending, void *ptr) { DBusMessage *reply; DBusError dbus_error; @@ -327,7 +327,7 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version, return EIO; } - retval = sbus_conn_send(conn, msg, 30000, id_callback, NULL, NULL); + retval = sbus_conn_send(conn, msg, 30000, dp_id_callback, NULL, NULL); dbus_message_unref(msg); return retval; -- cgit