1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 15:11:08 +00:00

Upadte to python3.

This commit is contained in:
ly1217
2019-06-27 22:30:31 -07:00
parent d6fec719c7
commit c73916ef77
109 changed files with 407 additions and 14614 deletions

View File

@@ -497,6 +497,7 @@ typedef struct {
char *client_name;
} RepoEventData;
/*
static void
free_repo_event_data (RepoEventData *data)
{
@@ -555,6 +556,7 @@ publish_stats_event (CEvent *event, void *data)
g_string_free (buf, TRUE);
free_stats_event_data (rdata);
}
*/
static void
on_repo_oper (HttpServer *htp_server, const char *etype,
@@ -2280,6 +2282,7 @@ seaf_http_server_new (struct _SeafileSession *session)
int
seaf_http_server_start (HttpServerStruct *server)
{
/*
server->priv->cevent_id = cevent_manager_register (seaf->ev_mgr,
(cevent_handler)publish_repo_event,
NULL);
@@ -2287,6 +2290,7 @@ seaf_http_server_start (HttpServerStruct *server)
server->priv->stats_event_id = cevent_manager_register (seaf->ev_mgr,
(cevent_handler)publish_stats_event,
NULL);
*/
int ret = pthread_create (&server->priv->thread_id, NULL, http_server_run, server);
if (ret != 0)