summaryrefslogtreecommitdiffstats
path: root/sfshare-gui/src/dbus_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfshare-gui/src/dbus_client.c')
-rw-r--r--sfshare-gui/src/dbus_client.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sfshare-gui/src/dbus_client.c b/sfshare-gui/src/dbus_client.c
index 6a4daa3..e285e97 100644
--- a/sfshare-gui/src/dbus_client.c
+++ b/sfshare-gui/src/dbus_client.c
@@ -44,7 +44,7 @@ PolkitSubject *subject;
PolkitAuthority *authority;
-/* Connect to DBUS */
+/** Connect to DBUS */
void
dbus_sfshare_connect ( void )
{
@@ -74,7 +74,7 @@ dbus_sfshare_connect ( void )
}
-/* Disconnect from DBUS */
+/** Disconnect from DBUS - free object */
void
dbus_sfshare_disconnect ( void )
{
@@ -85,14 +85,14 @@ dbus_sfshare_disconnect ( void )
}
}
-
+/** Get Polkit Authority */
void
polkit_sfshare_init ()
{
authority = polkit_authority_get ();
}
-
+/** Free Polkit objects */
void
polkit_sfshare_free ()
{
@@ -100,7 +100,7 @@ polkit_sfshare_free ()
g_object_unref (subject);
}
-
+/** PolicyKit callback */
static void
check_authorization_cb (PolkitAuthority *authority,
GAsyncResult *res,
@@ -136,7 +136,7 @@ check_authorization_cb (PolkitAuthority *authority,
}
}
-
+/** Check privileges vie PolicyKit */
void
polkit_sfshare_check (const gchar *action_id)
{
@@ -153,7 +153,7 @@ polkit_sfshare_check (const gchar *action_id)
NULL);
}
-
+/** Call daemon D-Bus methot get_share_status */
int
dbus_sfshare_get_share (const gchar *path, gchar ***result)
{
@@ -173,7 +173,7 @@ dbus_sfshare_get_share (const gchar *path, gchar ***result)
return 0;
}
-/* Reply of setup_share */
+/** Reply of setup_share */
void
set_share_reply (DBusGProxy *proxy, GError *error, gpointer userdata)
{
@@ -190,7 +190,7 @@ set_share_reply (DBusGProxy *proxy, GError *error, gpointer userdata)
}
-
+/** Async call daemon D-Bus methot setup_share */
void
dbus_sfshare_set_share (const gchar *name, const gchar *path, const gchar *comment, const gchar *read_only, const gchar *guest_ok)
{
@@ -212,7 +212,7 @@ dbus_sfshare_set_share (const gchar *name, const gchar *path, const gchar *comme
-
+/** Reply of delete_share */
void
delete_share_reply (DBusGProxy *proxy, GError *error, gpointer userdata)
{
@@ -230,7 +230,7 @@ delete_share_reply (DBusGProxy *proxy, GError *error, gpointer userdata)
}
-
+/** Async call daemon D-Bus methot delete_share */
void
dbus_sfshare_delete_share (const gchar *path)
{