/usr/include/seafile/seafile.h is in libseafile-dev 6.1.5-1.
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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#ifndef SEAFILE_H
#define SEAFILE_H
char *
seafile_create_repo (SearpcClient *client,
const gchar *name,
const gchar *description,
const gchar *worktree,
const gchar *passwd,
const gchar *relay_id,
int keep_local_history, GError **error);
int
seafile_create_repo_async (SearpcClient *client,
const gchar *name,
const gchar *description,
const gchar *worktree,
const gchar *passwd,
const gchar *relay_id,
int keep_local_history,
AsyncCallback callback, void *user_data);
int seafile_destroy_repo (SearpcClient *client,
const char *repo_id, GError **error);
int seafile_set_repo_token (SearpcClient *client,
const char *repo_id,
const char *token,
GError **error);
char *
seafile_get_repo_token (SearpcClient *client,
const char *repo_id,
GError **error);
int
seafile_set_repo_property (SearpcClient *client,
const char *repo_id,
const char *key,
const char *value,
GError **error);
GList *
seafile_get_repo_list (SearpcClient *client,
int offset,
int limit, GError **error);
GObject *
seafile_get_repo (SearpcClient *client,
const char *repo_id,
GError **error);
char *seafile_get_config (SearpcClient *client, const char *key, GError **error);
int seafile_get_config_async (SearpcClient *client, const char *key,
AsyncCallback callback, void *user_data);
int seafile_set_config_async (SearpcClient *client,
const char *key, const char *value,
AsyncCallback callback, void *user_data);
int seafile_calc_dir_size (SearpcClient *client, const char *path, GError **error);
/* server */
int seafile_add_chunk_server (SearpcClient *client, const char *server_id,
GError **error);
int seafile_del_chunk_server (SearpcClient *client, const char *server_id,
GError **error);
char *seafile_list_chunk_servers (SearpcClient *client, GError **error);
char *
seafile_repo_query_access_property (SearpcClient *client,
const char *repo_id,
GError **error);
GObject *
seafile_web_query_access_token (SearpcClient *client,
const char *token,
GError **error);
GObject *
seafile_get_decrypt_key (SearpcClient *client,
const char *repo_id,
const char *user,
GError **error);
char *
seafile_put_file (SearpcClient *client,
const char *repo_id,
const char *file_path,
const char *parent_dir,
const char *file_name,
const char *user,
const char *head_id,
GError **error);
char *
seafile_put_file_blocks (SearpcClient *client,
const char *repo_id,
const char *parent_dir,
const char *file_name,
const char *blockids_json,
const char *paths_json,
const char *user,
const char *head_id,
gint64 file_size,
GError **error);
int
seafile_post_file (SearpcClient *client,
const char *repo_id,
const char *file_path,
const char *parent_dir,
const char *file_name,
const char *user,
GError **error);
#define POST_FILE_ERR_FILENAME 401
#define POST_FILE_ERR_BLOCK_MISSING 402
char *
seafile_post_file_blocks (SearpcClient *client,
const char *repo_id,
const char *parent_dir,
const char *file_name,
const char *blockids_json,
const char *paths_json,
const char *user,
gint64 file_size,
int replace_existed,
GError **error);
char *
seafile_post_multi_files (SearpcClient *client,
const char *repo_id,
const char *parent_dir,
const char *filenames_json,
const char *paths_json,
const char *user,
int replace_existed,
GError **error);
int
seafile_set_user_quota (SearpcClient *client,
const char *user,
gint64 quota,
GError **error);
int
seafile_set_org_quota (SearpcClient *client,
int org_id,
gint64 quota,
GError **error);
int
seafile_set_org_user_quota (SearpcClient *client,
int org_id,
const char *user,
gint64 quota,
GError **error);
int
seafile_check_quota (SearpcClient *client,
const char *repo_id,
GError **error);
int
seafile_disable_auto_sync_async (SearpcClient *client,
AsyncCallback callback,
void *user_data);
int
seafile_enable_auto_sync_async (SearpcClient *client,
AsyncCallback callback,
void *user_data);
int
seafile_is_auto_sync_enabled_async (SearpcClient *client,
AsyncCallback callback,
void *user_data);
#endif
|