1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-17 23:59:44 +00:00

add rpc publish_event() , pop_event() and remove cevent (#253)

This commit is contained in:
Xiangyue Cai
2019-07-22 11:18:32 +08:00
committed by Jiaqiang Xu
parent b85d194b4b
commit aa0185203b
13 changed files with 208 additions and 90 deletions

View File

@@ -637,6 +637,18 @@ static void start_rpc_service (int cloud_mode, char *seafile_dir)
"seafile_get_file_id_by_commit_and_path",
searpc_signature_string__string_string_string());
/* event */
searpc_server_register_function ("seafserv-threaded-rpcserver",
seafile_publish_event,
"publish_event",
searpc_signature_int__string_string());
searpc_server_register_function ("seafserv-threaded-rpcserver",
seafile_pop_event,
"pop_event",
searpc_signature_string__string());
if (!cloud_mode) {
searpc_server_register_function ("seafserv-threaded-rpcserver",
seafile_set_inner_pub_repo,