summaryrefslogtreecommitdiffstats
path: root/sfshare-gui/src/dbus_client.h
blob: d633d1abacead95c2b557a2bce9c24cec2ca89fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public
 *  License along with this library; if not, write to the Free
 *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef DBUS_SERVICE_H
#define DBUS_SERVICE_H

int dbus_sfshare_get_share (const gchar *path, gchar ***result);
void dbus_sfshare_set_share (const gchar *name, const gchar *path, const gchar *comment, const gchar *read_only, const gchar *guest_ok);
void dbus_sfshare_delete_share (const gchar *path);
void dbus_sfshare_connect ( void );
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"

void polkit_sfshare_check (const gchar *action_id);
void polkit_sfshare_init();
void polkit_sfshare_free();


#endif