summaryrefslogtreecommitdiffstats
path: root/sfshare-gui/src/dbus_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'sfshare-gui/src/dbus_client.h')
-rw-r--r--sfshare-gui/src/dbus_client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sfshare-gui/src/dbus_client.h b/sfshare-gui/src/dbus_client.h
index d633d1a..ce963b2 100644
--- a/sfshare-gui/src/dbus_client.h
+++ b/sfshare-gui/src/dbus_client.h
@@ -18,18 +18,26 @@
#ifndef DBUS_SERVICE_H
#define DBUS_SERVICE_H
+/** Call daemon D-Bus methot get_share_status */
int dbus_sfshare_get_share (const gchar *path, gchar ***result);
+/** 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);
+/** Async call daemon D-Bus methot delete_share */
void dbus_sfshare_delete_share (const gchar *path);
+/** Connect to DBUS */
void dbus_sfshare_connect ( void );
+/** Disconnect from DBUS - free object */
void dbus_sfshare_disconnect ( void );
#define ACTION_ID_SETUP_SHARE "org.fedoraproject.SimpleFileShare.setup_share"
#define ASTION_ID_DELETE_SHARE "org.fedoraproject.SimpleFileShare.delete_share"
+/** Check privileges vie PolicyKit */
void polkit_sfshare_check (const gchar *action_id);
+/** Get Polkit Authority */
void polkit_sfshare_init();
+/** Free Polkit objects */
void polkit_sfshare_free();