From f7f6aceabdc15d06fcc6b5a21c4f53d687e89b6e Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 4 Sep 2012 10:21:26 +0200 Subject: [PATCH] Expose the method for updating an SSSD realm's properties https://bugs.freedesktop.org/show_bug.cgi?id=55041 --- service/realm-sssd.c | 12 +++++------- service/realm-sssd.h | 2 ++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/service/realm-sssd.c b/service/realm-sssd.c index e2f16cf..a015433 100644 --- a/service/realm-sssd.c +++ b/service/realm-sssd.c @@ -42,8 +42,6 @@ enum { PROP_PROVIDER, }; -static void update_properties (RealmSssd *self); - G_DEFINE_TYPE (RealmSssd, realm_sssd, REALM_TYPE_KERBEROS); static void @@ -65,7 +63,7 @@ on_logins_restarted (GObject *source, if (error != NULL) g_simple_async_result_take_error (async, error); - update_properties (self); + realm_sssd_update_properties (self); g_simple_async_result_complete (async); g_object_unref (async); @@ -339,8 +337,8 @@ update_login_policy (RealmSssd *self) g_ptr_array_free (permitted, TRUE); } -static void -update_properties (RealmSssd *self) +void +realm_sssd_update_properties (RealmSssd *self) { GObject *obj = G_OBJECT (self); const gchar *name; @@ -387,7 +385,7 @@ static void on_config_changed (RealmIniConfig *config, gpointer user_data) { - update_properties (REALM_SSSD (user_data)); + realm_sssd_update_properties (REALM_SSSD (user_data)); } static void @@ -418,7 +416,7 @@ realm_sssd_notify (GObject *obj, GParamSpec *spec) { if (g_str_equal (spec->name, "name")) - update_properties (REALM_SSSD (obj)); + realm_sssd_update_properties (REALM_SSSD (obj)); if (G_OBJECT_CLASS (realm_sssd_parent_class)->notify) G_OBJECT_CLASS (realm_sssd_parent_class)->notify (obj, spec); diff --git a/service/realm-sssd.h b/service/realm-sssd.h index 0e66044..a488f76 100644 --- a/service/realm-sssd.h +++ b/service/realm-sssd.h @@ -57,6 +57,8 @@ void realm_sssd_deconfigure_domain_tail (RealmSssd *self, GSimpleAsyncResult *async, GDBusMethodInvocation *invocation); +void realm_sssd_update_properties (RealmSssd *self); + G_END_DECLS #endif /* __REALM_SSSD_H__ */ -- 1.7.10.4