/usr/include/libsyncdaemon-1.0/libsyncdaemon/syncdaemon-daemon.h is in libsyncdaemon-1.0-dev 3.0.2-0ubuntu2.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | /*
* Syncdaemon API
*
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
*
* Copyright 2010-2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
* OpenSSL library under certain conditions as described in each
* individual source file, and distribute linked combinations
* including the two.
* You must obey the GNU General Public License in all respects
* for all of the code used other than OpenSSL. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you
* do not wish to do so, delete this exception statement from your
* version. If you delete this exception statement from all source
* files in the program, then also delete it here.
*
*/
#ifndef __SYNCDAEMON_DAEMON_H__
#define __SYNCDAEMON_DAEMON_H__
#include <glib-object.h>
#include "syncdaemon-authentication.h"
#include "syncdaemon-file-info.h"
#include "syncdaemon-folder-info.h"
#include "syncdaemon-interface.h"
#include "syncdaemon-metadata.h"
#include "syncdaemon-share-info.h"
#include "syncdaemon-status-info.h"
#include "syncdaemon-transfer-info.h"
G_BEGIN_DECLS
#define SYNCDAEMON_TYPE_DAEMON (syncdaemon_daemon_get_type ())
#define SYNCDAEMON_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNCDAEMON_TYPE_DAEMON, SyncdaemonDaemon))
#define SYNCDAEMON_IS_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNCDAEMON_TYPE_DAEMON))
#define SYNCDAEMON_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNCDAEMON_TYPE_DAEMON, SyncdaemonDaemonClass))
#define SYNCDAEMON_IS_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNCDAEMON_TYPE_DAEMON))
#define SYNCDAEMON_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNCDAEMON_TYPE_DAEMON, SyncdaemonDaemonClass))
typedef struct _SyncdaemonDaemonPrivate SyncdaemonDaemonPrivate;
typedef struct {
GObject parent;
SyncdaemonDaemonPrivate *priv;
} SyncdaemonDaemon;
typedef struct {
GObjectClass parent_class;
/* Signals */
void (* ready) (SyncdaemonDaemon *daemon);
void (* connected) (SyncdaemonDaemon *daemon);
void (* disconnected) (SyncdaemonDaemon *daemon);
void (* status_changed) (SyncdaemonDaemon *daemon, SyncdaemonStatusInfo *status_info);
void (* event) (SyncdaemonDaemon *daemon, GHashTable *event_dict);
void (* error) (SyncdaemonDaemon *daemon, const gchar *signal, GHashTable *extra_args);
void (* folder_created) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonFolderInfo *folder_info);
void (* folder_deleted) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonFolderInfo *folder_info);
void (* folder_subscribed) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonFolderInfo *folder_info);
void (* folder_unsubscribed) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonFolderInfo *folder_info);
void (* file_published) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonFileInfo *file_info);
void (* file_unpublished) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonFileInfo *file_info);
void (* share_created) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonShareInfo *share_info);
void (* share_deleted) (SyncdaemonDaemon *daemon, gboolean success, SyncdaemonShareInfo *share_info);
void (* download_started) (SyncdaemonDaemon *daemon, const gchar *path);
void (* download_file_progress) (SyncdaemonDaemon *daemon, const gchar *path, SyncdaemonTransferInfo *tinfo);
void (* download_finished) (SyncdaemonDaemon *daemon, const gchar *path, SyncdaemonTransferInfo *tinfo);
void (* upload_started) (SyncdaemonDaemon *daemon, const gchar *path);
void (* upload_file_progress) (SyncdaemonDaemon *daemon, const gchar *path, SyncdaemonTransferInfo *tinfo);
void (* upload_finished) (SyncdaemonDaemon *daemon, const gchar *path, SyncdaemonTransferInfo *tinfo);
void (* quota_exceeded) (SyncdaemonDaemon *daemon, GHashTable *volume_info);
} SyncdaemonDaemonClass;
GType syncdaemon_daemon_get_type (void);
SyncdaemonDaemon *syncdaemon_daemon_new (void);
gboolean syncdaemon_daemon_is_ready (SyncdaemonDaemon *daemon);
gboolean syncdaemon_daemon_connect (SyncdaemonDaemon *daemon);
gboolean syncdaemon_daemon_disconnect (SyncdaemonDaemon *daemon);
gboolean syncdaemon_daemon_quit (SyncdaemonDaemon *daemon);
const gchar *syncdaemon_daemon_get_root_dir (SyncdaemonDaemon *daemon);
gboolean syncdaemon_daemon_has_network (SyncdaemonDaemon *daemon);
SyncdaemonAuthentication *syncdaemon_daemon_get_authentication (SyncdaemonDaemon *daemon);
/* Configuration */
gboolean syncdaemon_daemon_get_bandwidth_throttling (SyncdaemonDaemon *daemon);
void syncdaemon_daemon_set_bandwidth_throttling (SyncdaemonDaemon *daemon, gboolean enabled);
gboolean syncdaemon_daemon_get_files_sync (SyncdaemonDaemon *daemon);
void syncdaemon_daemon_set_files_sync (SyncdaemonDaemon *daemon, gboolean enabled);
void syncdaemon_daemon_get_throttling_limits (SyncdaemonDaemon *daemon, gint *download, gint *upload);
void syncdaemon_daemon_set_throttling_limits (SyncdaemonDaemon *daemon, gint download, gint upload);
gboolean syncdaemon_daemon_get_udf_autosubscribe (SyncdaemonDaemon *daemon);
void syncdaemon_daemon_set_udf_autosubscribe (SyncdaemonDaemon *daemon, gboolean enabled);
/* File system operations */
SyncdaemonMetadata *syncdaemon_daemon_get_metadata (SyncdaemonDaemon *daemon,
const gchar *path,
gboolean with_subtree_sync_check);
/* Folders operations */
GSList *syncdaemon_daemon_get_folders (SyncdaemonDaemon *daemon);
SyncdaemonFolderInfo*syncdaemon_daemon_get_folder_info (SyncdaemonDaemon *daemon, const gchar *path);
gboolean syncdaemon_daemon_is_folder_enabled (SyncdaemonDaemon *daemon,
const gchar *path,
gboolean *is_root);
void syncdaemon_daemon_create_folder (SyncdaemonDaemon *daemon, const gchar *path);
void syncdaemon_daemon_delete_folder (SyncdaemonDaemon *daemon, const gchar *path);
void syncdaemon_daemon_subscribe_folder (SyncdaemonDaemon *daemon, const gchar *path);
void syncdaemon_daemon_unsubscribe_folder (SyncdaemonDaemon *daemon, const gchar *path);
/* Public files operations */
gboolean syncdaemon_daemon_publish_file (SyncdaemonDaemon *daemon, const gchar *path);
gboolean syncdaemon_daemon_unpublish_file (SyncdaemonDaemon *daemon, const gchar *path);
GSList *syncdaemon_daemon_get_public_files (SyncdaemonDaemon *daemon);
/* Shares operations */
void syncdaemon_daemon_create_share (SyncdaemonDaemon *daemon,
const gchar *path,
GSList *usernames,
const gchar *name,
gboolean allow_modifications);
void syncdaemon_daemon_delete_share (SyncdaemonDaemon *daemon, const gchar *path);
GSList *syncdaemon_daemon_get_shared_folders (SyncdaemonDaemon *daemon);
GSList *syncdaemon_daemon_get_shares (SyncdaemonDaemon *daemon);
/* Status operations */
SyncdaemonStatusInfo*syncdaemon_daemon_get_current_status (SyncdaemonDaemon *daemon);
GSList *syncdaemon_daemon_get_current_downloads (SyncdaemonDaemon *daemon);
GSList *syncdaemon_daemon_get_current_uploads (SyncdaemonDaemon *daemon);
/*
* Low level DBus interface access
*/
SyncdaemonInterface *syncdaemon_daemon_get_config_interface (SyncdaemonDaemon *daemon);
SyncdaemonInterface *syncdaemon_daemon_get_events_interface (SyncdaemonDaemon *daemon);
SyncdaemonInterface *syncdaemon_daemon_get_filesystem_interface (SyncdaemonDaemon *daemon);
SyncdaemonInterface *syncdaemon_daemon_get_folders_interface (SyncdaemonDaemon *daemon);
SyncdaemonInterface *syncdaemon_daemon_get_publicfiles_interface (SyncdaemonDaemon *daemon);
SyncdaemonInterface *syncdaemon_daemon_get_shares_interface (SyncdaemonDaemon *daemon);
SyncdaemonInterface *syncdaemon_daemon_get_status_interface (SyncdaemonDaemon *daemon);
G_END_DECLS
#endif
|