Lines Matching refs:repo_id

137 seafile_branch_gets (const char *repo_id, GError **error)  in seafile_branch_gets()  argument
139 if (!is_uuid_valid (repo_id)) { in seafile_branch_gets()
145 repo_id); in seafile_branch_gets()
152 g_object_set (branch, "repo_id", b->repo_id, "name", b->name, in seafile_branch_gets()
185 seafile_del_repo_from_trash (const char *repo_id, GError **error) in seafile_del_repo_from_trash() argument
189 if (!repo_id) { in seafile_del_repo_from_trash()
193 if (!is_uuid_valid (repo_id)) { in seafile_del_repo_from_trash()
198 ret = seaf_repo_manager_del_repo_from_trash (seaf->repo_mgr, repo_id, error); in seafile_del_repo_from_trash()
221 seafile_restore_repo_from_trash (const char *repo_id, GError **error) in seafile_restore_repo_from_trash() argument
225 if (!repo_id) { in seafile_restore_repo_from_trash()
229 if (!is_uuid_valid (repo_id)) { in seafile_restore_repo_from_trash()
234 ret = seaf_repo_manager_restore_repo_from_trash (seaf->repo_mgr, repo_id, error); in seafile_restore_repo_from_trash()
292 seafile_get_repo (const char *repo_id, GError **error) in seafile_get_repo() argument
296 if (!repo_id) { in seafile_get_repo()
300 if (!is_uuid_valid (repo_id)) { in seafile_get_repo()
305 r = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_get_repo()
329 "repo_id", c->repo_id, in convert_to_seafile_commit()
343 seafile_get_commit (const char *repo_id, int version, in seafile_get_commit() argument
349 if (!repo_id || !is_uuid_valid(repo_id)) { in seafile_get_commit()
359 c = seaf_commit_manager_get_commit (seaf->commit_mgr, repo_id, version, id); in seafile_get_commit()
425 seafile_get_commit_list (const char *repo_id, in seafile_get_commit_list() argument
436 if (!is_uuid_valid (repo_id)) { in seafile_get_commit_list()
445 if (!repo_id) { in seafile_get_commit_list()
450 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_get_commit_list()
465 repo_id); in seafile_get_commit_list()
484 repo_id); in seafile_get_commit_list()
549 seaf_clone_manager_cancel_task (seaf->clone_mgr, task->repo_id); in cancel_clone_tasks_by_account()
631 seafile_set_repo_token (const char *repo_id, in seafile_set_repo_token() argument
637 if (repo_id == NULL || token == NULL) { in seafile_set_repo_token()
643 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_set_repo_token()
645 g_set_error (error, SEAFILE_DOMAIN, SEAF_ERR_BAD_REPO, "Can't find Repo %s", repo_id); in seafile_set_repo_token()
653 "Failed to set token for repo %s", repo_id); in seafile_set_repo_token()
663 seafile_destroy_repo (const char *repo_id, GError **error) in seafile_destroy_repo() argument
665 if (!repo_id) { in seafile_destroy_repo()
669 if (!is_uuid_valid (repo_id)) { in seafile_destroy_repo()
677 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_destroy_repo()
686 return seaf_repo_manager_del_repo (seaf->repo_mgr, repo_id, error); in seafile_destroy_repo()
693 const char* repo_id, in seafile_generate_magic_and_random_key() argument
697 if (!repo_id || !passwd) { in seafile_generate_magic_and_random_key()
710 seafile_generate_magic (enc_version, repo_id, passwd, salt, magic); in seafile_generate_magic_and_random_key()
717 "repo_id", repo_id, in seafile_generate_magic_and_random_key()
751 seafile_diff (const char *repo_id, const char *arg1, const char *arg2, int fold_dir_results, GError… in seafile_diff() argument
758 if (!repo_id || !arg1 || !arg2) { in seafile_diff()
763 if (!is_uuid_valid (repo_id)) { in seafile_diff()
773 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_diff()
820 seafile_list_dir_by_path(const char *repo_id, in seafile_list_dir_by_path() argument
833 if (!repo_id || !commit_id || !path) { in seafile_list_dir_by_path()
839 if (!is_uuid_valid (repo_id)) { in seafile_list_dir_by_path()
851 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_list_dir_by_path()
858 repo_id, repo->version, in seafile_list_dir_by_path()
916 seafile_get_dir_id_by_commit_and_path(const char *repo_id, in seafile_get_dir_id_by_commit_and_path() argument
926 if (!repo_id || !commit_id || !path) { in seafile_get_dir_id_by_commit_and_path()
932 if (!is_uuid_valid (repo_id)) { in seafile_get_dir_id_by_commit_and_path()
944 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_get_dir_id_by_commit_and_path()
951 repo_id, repo->version, in seafile_get_dir_id_by_commit_and_path()
984 seafile_edit_repo (const char *repo_id, in seafile_edit_repo() argument
990 return seaf_repo_manager_edit_repo (repo_id, name, description, user, error); in seafile_edit_repo()
994 seafile_change_repo_passwd (const char *repo_id, in seafile_change_repo_passwd() argument
1016 if (!is_uuid_valid (repo_id)) { in seafile_change_repo_passwd()
1022 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_change_repo_passwd()
1039 if (seafile_verify_repo_passwd (repo_id, old_passwd, repo->magic, in seafile_change_repo_passwd()
1057 seafile_generate_magic (repo->enc_version, repo_id, new_passwd, repo->salt, new_magic); in seafile_change_repo_passwd()
1096 if (seaf_passwd_manager_is_passwd_set (seaf->passwd_mgr, repo_id, user)) in seafile_change_repo_passwd()
1097 seaf_passwd_manager_set_passwd (seaf->passwd_mgr, repo_id, in seafile_change_repo_passwd()
1110 const char *repo_id, in seafile_is_repo_owner() argument
1113 if (!is_uuid_valid (repo_id)) { in seafile_is_repo_owner()
1118 char *owner = seaf_repo_manager_get_repo_owner (seaf->repo_mgr, repo_id); in seafile_is_repo_owner()
1134 seafile_set_repo_owner(const char *repo_id, const char *email, in seafile_set_repo_owner() argument
1137 if (!repo_id || !email) { in seafile_set_repo_owner()
1141 if (!is_uuid_valid (repo_id)) { in seafile_set_repo_owner()
1146 return seaf_repo_manager_set_repo_owner(seaf->repo_mgr, repo_id, email); in seafile_set_repo_owner()
1150 seafile_get_repo_owner (const char *repo_id, GError **error) in seafile_get_repo_owner() argument
1152 if (!repo_id) { in seafile_get_repo_owner()
1156 if (!is_uuid_valid (repo_id)) { in seafile_get_repo_owner()
1161 char *owner = seaf_repo_manager_get_repo_owner (seaf->repo_mgr, repo_id); in seafile_get_repo_owner()
1278 seafile_server_repo_size(const char *repo_id, GError **error) in seafile_server_repo_size() argument
1282 if (!repo_id || strlen(repo_id) != 36) { in seafile_server_repo_size()
1287 if (!is_uuid_valid (repo_id)) { in seafile_server_repo_size()
1292 ret = seaf_repo_manager_get_repo_size (seaf->repo_mgr, repo_id); in seafile_server_repo_size()
1302 seafile_set_repo_history_limit (const char *repo_id, in seafile_set_repo_history_limit() argument
1306 if (!repo_id || !is_uuid_valid (repo_id)) { in seafile_set_repo_history_limit()
1311 if (!is_uuid_valid (repo_id)) { in seafile_set_repo_history_limit()
1317 repo_id, in seafile_set_repo_history_limit()
1327 seafile_get_repo_history_limit (const char *repo_id, in seafile_get_repo_history_limit() argument
1330 if (!repo_id || !is_uuid_valid (repo_id)) { in seafile_get_repo_history_limit()
1335 if (!is_uuid_valid (repo_id)) { in seafile_get_repo_history_limit()
1340 return seaf_repo_manager_get_repo_history_limit (seaf->repo_mgr, repo_id); in seafile_get_repo_history_limit()
1344 seafile_repo_set_access_property (const char *repo_id, const char *ap, GError **error) in seafile_repo_set_access_property() argument
1348 if (!repo_id) { in seafile_repo_set_access_property()
1353 if (strlen(repo_id) != 36) { in seafile_repo_set_access_property()
1363 ret = seaf_repo_manager_set_access_property (seaf->repo_mgr, repo_id, ap); in seafile_repo_set_access_property()
1373 seafile_repo_query_access_property (const char *repo_id, GError **error) in seafile_repo_query_access_property() argument
1377 if (!repo_id) { in seafile_repo_query_access_property()
1382 if (strlen(repo_id) != 36) { in seafile_repo_query_access_property()
1387 ret = seaf_repo_manager_query_access_property (seaf->repo_mgr, repo_id); in seafile_repo_query_access_property()
1393 seafile_web_get_access_token (const char *repo_id, in seafile_web_get_access_token() argument
1402 if (!repo_id || !obj_id || !op || !username) { in seafile_web_get_access_token()
1408 repo_id, obj_id, op, in seafile_web_get_access_token()
1447 seafile_add_share (const char *repo_id, const char *from_email, in seafile_add_share() argument
1452 if (!repo_id || !from_email || !to_email || !permission) { in seafile_add_share()
1457 if (!is_uuid_valid (repo_id)) { in seafile_add_share()
1475 ret = seaf_share_manager_add_share (seaf->share_mgr, repo_id, from_email, in seafile_add_share()
1499 seafile_list_repo_shared_to (const char *from_user, const char *repo_id, in seafile_list_repo_shared_to() argument
1503 if (!from_user || !repo_id) { in seafile_list_repo_shared_to()
1508 if (!is_uuid_valid (repo_id)) { in seafile_list_repo_shared_to()
1514 from_user, repo_id, in seafile_list_repo_shared_to()
1519 seafile_share_subdir_to_user (const char *repo_id, in seafile_share_subdir_to_user() argument
1527 if (is_empty_string (repo_id) || !is_uuid_valid (repo_id)) { in seafile_share_subdir_to_user()
1572 repo_id, real_path, in seafile_share_subdir_to_user()
1595 seafile_unshare_subdir_for_user (const char *repo_id, in seafile_unshare_subdir_for_user() argument
1601 if (is_empty_string (repo_id) || !is_uuid_valid (repo_id)) { in seafile_unshare_subdir_for_user()
1632 repo_id, real_path, owner, share_user); in seafile_unshare_subdir_for_user()
1643 seafile_update_share_subdir_perm_for_user (const char *repo_id, in seafile_update_share_subdir_perm_for_user() argument
1650 if (is_empty_string (repo_id) || !is_uuid_valid (repo_id)) { in seafile_update_share_subdir_perm_for_user()
1687 repo_id, owner, share_user, in seafile_update_share_subdir_perm_for_user()
1700 seafile_list_repo_shared_group (const char *from_user, const char *repo_id, in seafile_list_repo_shared_group() argument
1704 if (!from_user || !repo_id) { in seafile_list_repo_shared_group()
1709 if (!is_uuid_valid (repo_id)) { in seafile_list_repo_shared_group()
1715 from_user, repo_id, in seafile_list_repo_shared_group()
1720 seafile_remove_share (const char *repo_id, const char *from_email, in seafile_remove_share() argument
1725 if (!repo_id || !from_email ||!to_email) { in seafile_remove_share()
1730 ret = seaf_share_manager_remove_share (seaf->share_mgr, repo_id, from_email, in seafile_remove_share()
1739 seafile_group_share_repo (const char *repo_id, int group_id, in seafile_group_share_repo() argument
1746 if (group_id <= 0 || !user_name || !repo_id || !permission) { in seafile_group_share_repo()
1752 if (!is_uuid_valid (repo_id)) { in seafile_group_share_repo()
1763 ret = seaf_repo_manager_add_group_repo (mgr, repo_id, group_id, user_name, in seafile_group_share_repo()
1770 seafile_group_unshare_repo (const char *repo_id, int group_id, in seafile_group_unshare_repo() argument
1776 if (!user_name || !repo_id) { in seafile_group_unshare_repo()
1782 if (!is_uuid_valid (repo_id)) { in seafile_group_unshare_repo()
1787 ret = seaf_repo_manager_del_group_repo (mgr, repo_id, group_id, error); in seafile_group_unshare_repo()
1794 seafile_share_subdir_to_group (const char *repo_id, in seafile_share_subdir_to_group() argument
1802 if (is_empty_string (repo_id) || !is_uuid_valid (repo_id)) { in seafile_share_subdir_to_group()
1841 repo_id, real_path, in seafile_share_subdir_to_group()
1864 seafile_unshare_subdir_for_group (const char *repo_id, in seafile_unshare_subdir_for_group() argument
1870 if (is_empty_string (repo_id) || !is_uuid_valid (repo_id)) { in seafile_unshare_subdir_for_group()
1899 ret = seaf_share_manager_unshare_group_subdir (seaf->share_mgr, repo_id, in seafile_unshare_subdir_for_group()
1911 seafile_update_share_subdir_perm_for_group (const char *repo_id, in seafile_update_share_subdir_perm_for_group() argument
1918 if (is_empty_string (repo_id) || !is_uuid_valid (repo_id)) { in seafile_update_share_subdir_perm_for_group()
1953 repo_id, owner, share_group, in seafile_update_share_subdir_perm_for_group()
1965 seafile_get_shared_groups_by_repo(const char *repo_id, GError **error) in seafile_get_shared_groups_by_repo() argument
1971 if (!repo_id) { in seafile_get_shared_groups_by_repo()
1977 if (!is_uuid_valid (repo_id)) { in seafile_get_shared_groups_by_repo()
1982 group_ids = seaf_repo_manager_get_groups_by_repo (mgr, repo_id, error); in seafile_get_shared_groups_by_repo()
2060 seafile_get_group_repo_owner (const char *repo_id, GError **error) in seafile_get_group_repo_owner() argument
2065 if (!is_uuid_valid (repo_id)) { in seafile_get_group_repo_owner()
2070 char *share_from = seaf_repo_manager_get_group_repo_owner (mgr, repo_id, in seafile_get_group_repo_owner()
2097 seafile_set_inner_pub_repo (const char *repo_id, in seafile_set_inner_pub_repo() argument
2101 if (!repo_id) { in seafile_set_inner_pub_repo()
2106 if (!is_uuid_valid (repo_id)) { in seafile_set_inner_pub_repo()
2112 repo_id, permission) < 0) { in seafile_set_inner_pub_repo()
2121 seafile_unset_inner_pub_repo (const char *repo_id, GError **error) in seafile_unset_inner_pub_repo() argument
2123 if (!repo_id) { in seafile_unset_inner_pub_repo()
2128 if (!is_uuid_valid (repo_id)) { in seafile_unset_inner_pub_repo()
2133 if (seaf_repo_manager_unset_inner_pub_repo (seaf->repo_mgr, repo_id) < 0) { in seafile_unset_inner_pub_repo()
2165 seafile_is_inner_pub_repo (const char *repo_id, GError **error) in seafile_is_inner_pub_repo() argument
2167 if (!repo_id) { in seafile_is_inner_pub_repo()
2172 if (!is_uuid_valid (repo_id)) { in seafile_is_inner_pub_repo()
2177 return seaf_repo_manager_is_inner_pub_repo (seaf->repo_mgr, repo_id); in seafile_is_inner_pub_repo()
2237 seafile_check_passwd (const char *repo_id, in seafile_check_passwd() argument
2241 if (!repo_id || strlen(repo_id) != 36 || !magic) { in seafile_check_passwd()
2248 repo_id, magic, in seafile_check_passwd()
2257 seafile_set_passwd (const char *repo_id, in seafile_set_passwd() argument
2262 if (!repo_id || strlen(repo_id) != 36 || !user || !passwd) { in seafile_set_passwd()
2269 repo_id, user, passwd, in seafile_set_passwd()
2278 seafile_unset_passwd (const char *repo_id, in seafile_unset_passwd() argument
2282 if (!repo_id || strlen(repo_id) != 36 || !user) { in seafile_unset_passwd()
2289 repo_id, user, in seafile_unset_passwd()
2298 seafile_is_passwd_set (const char *repo_id, const char *user, GError **error) in seafile_is_passwd_set() argument
2300 if (!repo_id || strlen(repo_id) != 36 || !user) { in seafile_is_passwd_set()
2307 repo_id, user); in seafile_is_passwd_set()
2311 seafile_get_decrypt_key (const char *repo_id, const char *user, GError **error) in seafile_get_decrypt_key() argument
2315 if (!repo_id || strlen(repo_id) != 36 || !user) { in seafile_get_decrypt_key()
2322 repo_id, user); in seafile_get_decrypt_key()
2333 seafile_revert_on_server (const char *repo_id, in seafile_revert_on_server() argument
2338 if (!repo_id || strlen(repo_id) != 36 || in seafile_revert_on_server()
2346 if (!is_uuid_valid (repo_id)) { in seafile_revert_on_server()
2357 repo_id, in seafile_revert_on_server()
2364 seafile_post_file (const char *repo_id, const char *temp_file_path, in seafile_post_file() argument
2372 if (!repo_id || !temp_file_path || !parent_dir || !file_name || !user) { in seafile_post_file()
2378 if (!is_uuid_valid (repo_id)) { in seafile_post_file()
2401 if (seaf_repo_manager_post_file (seaf->repo_mgr, repo_id, in seafile_post_file()
2479 seafile_post_multi_files (const char *repo_id, in seafile_post_multi_files() argument
2490 if (!repo_id || !filenames_json || !parent_dir || !paths_json || !user) { in seafile_post_multi_files()
2496 if (!is_uuid_valid (repo_id)) { in seafile_post_multi_files()
2511 repo_id, in seafile_post_multi_files()
2529 seafile_put_file (const char *repo_id, const char *temp_file_path, in seafile_put_file() argument
2537 if (!repo_id || !temp_file_path || !parent_dir || !file_name || !user) { in seafile_put_file()
2543 if (!is_uuid_valid (repo_id)) { in seafile_put_file()
2564 seaf_repo_manager_put_file (seaf->repo_mgr, repo_id, in seafile_put_file()
2629 seafile_post_dir (const char *repo_id, const char *parent_dir, in seafile_post_dir() argument
2636 if (!repo_id || !parent_dir || !new_dir_name || !user) { in seafile_post_dir()
2641 if (!is_uuid_valid (repo_id)) { in seafile_post_dir()
2664 if (seaf_repo_manager_post_dir (seaf->repo_mgr, repo_id, in seafile_post_dir()
2679 seafile_post_empty_file (const char *repo_id, const char *parent_dir, in seafile_post_empty_file() argument
2686 if (!repo_id || !parent_dir || !new_file_name || !user) { in seafile_post_empty_file()
2691 if (!is_uuid_valid (repo_id)) { in seafile_post_empty_file()
2714 if (seaf_repo_manager_post_empty_file (seaf->repo_mgr, repo_id, in seafile_post_empty_file()
2729 seafile_del_file (const char *repo_id, const char *parent_dir, in seafile_del_file() argument
2736 if (!repo_id || !parent_dir || !file_name || !user) { in seafile_del_file()
2741 if (!is_uuid_valid (repo_id)) { in seafile_del_file()
2764 if (seaf_repo_manager_del_file (seaf->repo_mgr, repo_id, in seafile_del_file()
2959 seafile_rename_file (const char *repo_id, in seafile_rename_file() argument
2970 if (!repo_id || !parent_dir || !oldname || !newname || !user) { in seafile_rename_file()
2975 if (!is_uuid_valid (repo_id)) { in seafile_rename_file()
3006 if (seaf_repo_manager_rename_file (seaf->repo_mgr, repo_id, in seafile_rename_file()
3021 seafile_is_valid_filename (const char *repo_id, in seafile_is_valid_filename() argument
3025 if (!repo_id || !filename) { in seafile_is_valid_filename()
3031 repo_id, in seafile_is_valid_filename()
3050 char *repo_id; in seafile_create_repo() local
3052 repo_id = seaf_repo_manager_create_new_repo (seaf->repo_mgr, in seafile_create_repo()
3058 return repo_id; in seafile_create_repo()
3062 seafile_create_enc_repo (const char *repo_id, in seafile_create_enc_repo() argument
3072 if (!repo_id || !repo_name || !repo_desc || !owner_email) { in seafile_create_enc_repo()
3080 repo_id, repo_name, repo_desc, in seafile_create_enc_repo()
3112 seafile_check_quota (const char *repo_id, gint64 delta, GError **error) in seafile_check_quota() argument
3116 if (!repo_id) { in seafile_check_quota()
3121 rc = seaf_quota_manager_check_quota_with_delta (seaf->quota_mgr, repo_id, delta); in seafile_check_quota()
3134 get_obj_id_by_path (const char *repo_id, in get_obj_id_by_path() argument
3143 if (!repo_id || !path) { in get_obj_id_by_path()
3149 if (!is_uuid_valid (repo_id)) { in get_obj_id_by_path()
3154 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in get_obj_id_by_path()
3192 char *seafile_get_file_id_by_path (const char *repo_id, in seafile_get_file_id_by_path() argument
3197 char *ret = get_obj_id_by_path (repo_id, rpath, FALSE, error); in seafile_get_file_id_by_path()
3206 char *seafile_get_dir_id_by_path (const char *repo_id, in seafile_get_dir_id_by_path() argument
3211 char *ret = get_obj_id_by_path (repo_id, rpath, TRUE, error); in seafile_get_dir_id_by_path()
3221 seafile_get_dirent_by_path (const char *repo_id, const char *path, in seafile_get_dirent_by_path() argument
3224 if (!repo_id || !path) { in seafile_get_dirent_by_path()
3230 if (!is_uuid_valid (repo_id)) { in seafile_get_dirent_by_path()
3244 SeafRepo *repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_get_dirent_by_path()
3292 seafile_list_file_blocks (const char *repo_id, in seafile_list_file_blocks() argument
3302 if (!repo_id || !is_uuid_valid(repo_id)) { in seafile_list_file_blocks()
3312 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_list_file_blocks()
3365 seafile_list_dir (const char *repo_id, in seafile_list_dir() argument
3375 if (!repo_id || !is_uuid_valid(repo_id)) { in seafile_list_dir()
3385 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_list_dir()
3440 seafile_list_file_revisions (const char *repo_id, in seafile_list_file_revisions() argument
3446 if (!repo_id || !path) { in seafile_list_file_revisions()
3452 if (!is_uuid_valid (repo_id)) { in seafile_list_file_revisions()
3461 repo_id, commit_id, rpath, in seafile_list_file_revisions()
3469 seafile_calc_files_last_modified (const char *repo_id, in seafile_calc_files_last_modified() argument
3474 if (!repo_id || !parent_dir) { in seafile_calc_files_last_modified()
3480 if (!is_uuid_valid (repo_id)) { in seafile_calc_files_last_modified()
3488 repo_id, rpath, in seafile_calc_files_last_modified()
3496 seafile_revert_file (const char *repo_id, in seafile_revert_file() argument
3502 if (!repo_id || !commit_id || !path || !user) { in seafile_revert_file()
3508 if (!is_uuid_valid (repo_id)) { in seafile_revert_file()
3521 repo_id, commit_id, in seafile_revert_file()
3529 seafile_revert_dir (const char *repo_id, in seafile_revert_dir() argument
3535 if (!repo_id || !commit_id || !path || !user) { in seafile_revert_dir()
3541 if (!is_uuid_valid (repo_id)) { in seafile_revert_dir()
3554 repo_id, commit_id, in seafile_revert_dir()
3563 seafile_check_repo_blocks_missing (const char *repo_id, in seafile_check_repo_blocks_missing() argument
3580 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_check_repo_blocks_missing()
3582 seaf_warning ("Failed to get repo %.8s.\n", repo_id); in seafile_check_repo_blocks_missing()
3596 if (!seaf_block_manager_block_exists(seaf->block_mgr, repo_id, in seafile_check_repo_blocks_missing()
3613 seafile_get_deleted (const char *repo_id, int show_days, in seafile_get_deleted() argument
3617 if (!repo_id) { in seafile_get_deleted()
3623 if (!is_uuid_valid (repo_id)) { in seafile_get_deleted()
3633 repo_id, show_days, in seafile_get_deleted()
3642 seafile_generate_repo_token (const char *repo_id, in seafile_generate_repo_token() argument
3648 if (!repo_id || !email) { in seafile_generate_repo_token()
3653 if (!is_uuid_valid (repo_id)) { in seafile_generate_repo_token()
3658 token = seaf_repo_manager_generate_repo_token (seaf->repo_mgr, repo_id, email, error); in seafile_generate_repo_token()
3664 seafile_delete_repo_token (const char *repo_id, in seafile_delete_repo_token() argument
3669 if (!repo_id || !token || !user) { in seafile_delete_repo_token()
3674 if (!is_uuid_valid (repo_id)) { in seafile_delete_repo_token()
3680 repo_id, token, user, error); in seafile_delete_repo_token()
3684 seafile_list_repo_tokens (const char *repo_id, in seafile_list_repo_tokens() argument
3689 if (!repo_id) { in seafile_list_repo_tokens()
3694 if (!is_uuid_valid (repo_id)) { in seafile_list_repo_tokens()
3699 ret_list = seaf_repo_manager_list_repo_tokens (seaf->repo_mgr, repo_id, error); in seafile_list_repo_tokens()
3771 seafile_check_permission (const char *repo_id, const char *user, GError **error) in seafile_check_permission() argument
3773 if (!repo_id || !user) { in seafile_check_permission()
3778 if (!is_uuid_valid (repo_id)) { in seafile_check_permission()
3787 repo_id, user, error); in seafile_check_permission()
3791 seafile_check_permission_by_path (const char *repo_id, const char *path, in seafile_check_permission_by_path() argument
3794 return seafile_check_permission (repo_id, user, error); in seafile_check_permission_by_path()
3798 seafile_list_dir_with_perm (const char *repo_id, in seafile_list_dir_with_perm() argument
3806 if (!repo_id || !is_uuid_valid (repo_id)) { in seafile_list_dir_with_perm()
3829 repo_id, in seafile_list_dir_with_perm()
3842 seafile_set_share_permission (const char *repo_id, in seafile_set_share_permission() argument
3848 if (!repo_id || !from_email || !to_email || !permission) { in seafile_set_share_permission()
3853 if (!is_uuid_valid (repo_id)) { in seafile_set_share_permission()
3866 repo_id, in seafile_set_share_permission()
3874 const char *repo_id, in seafile_set_group_repo_permission() argument
3878 if (!repo_id || !permission) { in seafile_set_group_repo_permission()
3883 if (!is_uuid_valid (repo_id)) { in seafile_set_group_repo_permission()
3896 repo_id, in seafile_set_group_repo_permission()
3903 seafile_get_file_id_by_commit_and_path(const char *repo_id, in seafile_get_file_id_by_commit_and_path() argument
3913 if (!repo_id || !is_uuid_valid(repo_id) || !commit_id || !path) { in seafile_get_file_id_by_commit_and_path()
3919 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_get_file_id_by_commit_and_path()
3926 repo_id, in seafile_get_file_id_by_commit_and_path()
3976 char *repo_id; in seafile_create_virtual_repo() local
3979 repo_id = seaf_repo_manager_create_virtual_repo (seaf->repo_mgr, in seafile_create_virtual_repo()
3985 return repo_id; in seafile_create_virtual_repo()
4050 char *repo_id; in seafile_get_virtual_repo() local
4055 repo_id = seaf_repo_manager_get_virtual_repo_id (seaf->repo_mgr, in seafile_get_virtual_repo()
4061 if (!repo_id) in seafile_get_virtual_repo()
4064 repo_obj = seafile_get_repo (repo_id, error); in seafile_get_virtual_repo()
4066 g_free (repo_id); in seafile_get_virtual_repo()
4109 seafile_clean_up_repo_history (const char *repo_id, int keep_days, GError **error) in seafile_clean_up_repo_history() argument
4114 if (!is_uuid_valid (repo_id)) { in seafile_clean_up_repo_history()
4119 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_clean_up_repo_history()
4121 seaf_warning ("Cannot find repo %s.\n", repo_id); in seafile_clean_up_repo_history()
4144 seafile_get_shared_users_for_subdir (const char *repo_id, in seafile_get_shared_users_for_subdir() argument
4149 if (!repo_id || !path || !from_user) { in seafile_get_shared_users_for_subdir()
4154 if (!is_uuid_valid (repo_id)) { in seafile_get_shared_users_for_subdir()
4162 repo_id, rpath, in seafile_get_shared_users_for_subdir()
4170 seafile_get_shared_groups_for_subdir (const char *repo_id, in seafile_get_shared_groups_for_subdir() argument
4175 if (!repo_id || !path || !from_user) { in seafile_get_shared_groups_for_subdir()
4180 if (!is_uuid_valid (repo_id)) { in seafile_get_shared_groups_for_subdir()
4188 repo_id, rpath, in seafile_get_shared_groups_for_subdir()
4208 seafile_get_file_count_info_by_path (const char *repo_id, in seafile_get_file_count_info_by_path() argument
4212 if (!repo_id || !path) { in seafile_get_file_count_info_by_path()
4219 repo = seaf_repo_manager_get_repo (seaf->repo_mgr, repo_id); in seafile_get_file_count_info_by_path()
4221 seaf_warning ("Failed to get repo %.10s\n", repo_id); in seafile_get_file_count_info_by_path()
4238 seafile_get_trash_repo_owner (const char *repo_id, GError **error) in seafile_get_trash_repo_owner() argument
4240 if (!repo_id) { in seafile_get_trash_repo_owner()
4245 return seaf_get_trash_repo_owner (repo_id); in seafile_get_trash_repo_owner()
4249 seafile_mkdir_with_parents (const char *repo_id, const char *parent_dir, in seafile_mkdir_with_parents() argument
4253 if (!repo_id || !parent_dir || !new_dir_path || !user) { in seafile_mkdir_with_parents()
4258 if (!is_uuid_valid (repo_id)) { in seafile_mkdir_with_parents()
4263 if (seaf_repo_manager_mkdir_with_parents (seaf->repo_mgr, repo_id, in seafile_mkdir_with_parents()
4365 seafile_get_group_shared_repo_by_path (const char *repo_id, in seafile_get_group_shared_repo_by_path() argument
4371 if (!repo_id || group_id < 0) { in seafile_get_group_shared_repo_by_path()
4377 …return seaf_get_group_shared_repo_by_path (mgr, repo_id, path, group_id, is_org ? TRUE:FALSE, erro… in seafile_get_group_shared_repo_by_path()
4381 seafile_get_shared_repo_by_path (const char *repo_id, in seafile_get_shared_repo_by_path() argument
4387 if (!repo_id || !shared_to) { in seafile_get_shared_repo_by_path()
4393 return seaf_get_shared_repo_by_path (mgr, repo_id, path, shared_to, is_org ? TRUE:FALSE, error); in seafile_get_shared_repo_by_path()
4421 seafile_repo_has_been_shared (const char *repo_id, int including_groups, GError **error) in seafile_repo_has_been_shared() argument
4423 if (!repo_id) { in seafile_repo_has_been_shared()
4428 gboolean exists = seaf_share_manager_repo_has_been_shared (seaf->share_mgr, repo_id, in seafile_repo_has_been_shared()
4434 seafile_get_shared_users_by_repo (const char *repo_id, GError **error) in seafile_get_shared_users_by_repo() argument
4436 if (!repo_id) { in seafile_get_shared_users_by_repo()
4442 repo_id); in seafile_get_shared_users_by_repo()
4447 const char *repo_id, in seafile_org_get_shared_users_by_repo() argument
4450 if (!repo_id || org_id < 0) { in seafile_org_get_shared_users_by_repo()
4456 org_id, repo_id); in seafile_org_get_shared_users_by_repo()
4462 seafile_get_upload_tmp_file_offset (const char *repo_id, const char *file_path, in seafile_get_upload_tmp_file_offset() argument
4465 if (!repo_id || !is_uuid_valid(repo_id)) { in seafile_get_upload_tmp_file_offset()
4479 gint64 ret = seaf_repo_manager_get_upload_tmp_file_offset (seaf->repo_mgr, repo_id, in seafile_get_upload_tmp_file_offset()
4487 seafile_convert_repo_path (const char *repo_id, in seafile_convert_repo_path() argument
4493 if (!is_uuid_valid(repo_id) || !path || !user) { in seafile_convert_repo_path()
4499 …char *ret = seaf_repo_manager_convert_repo_path(seaf->repo_mgr, repo_id, rpath, user, is_org ? TRU… in seafile_convert_repo_path()
4506 seafile_set_repo_status(const char *repo_id, int status, GError **error) in seafile_set_repo_status() argument
4508 if (!is_uuid_valid(repo_id) || in seafile_set_repo_status()
4514 return seaf_repo_manager_set_repo_status(seaf->repo_mgr, repo_id, status); in seafile_set_repo_status()
4518 seafile_get_repo_status(const char *repo_id, GError **error) in seafile_get_repo_status() argument
4522 if (!is_uuid_valid(repo_id)) { in seafile_get_repo_status()
4527 status = seaf_repo_manager_get_repo_status(seaf->repo_mgr, repo_id); in seafile_get_repo_status()
4533 seafile_search_files (const char *repo_id, const char *str, GError **error) in seafile_search_files() argument
4535 if (!is_uuid_valid (repo_id)) { in seafile_search_files()
4540 GList *file_list = seaf_fs_manager_search_files (seaf->fs_mgr, repo_id, str); in seafile_search_files()