2016-08-10 06:53:33 +00:00
|
|
|
#ifndef HTTP_SERVER_H
|
|
|
|
#define HTTP_SERVER_H
|
|
|
|
|
2024-03-13 11:38:44 +00:00
|
|
|
#ifdef HAVE_EVHTP
|
2016-08-10 06:53:33 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
struct _SeafileSession;
|
|
|
|
|
|
|
|
struct _HttpServer;
|
|
|
|
|
|
|
|
struct _HttpServerStruct {
|
|
|
|
struct _SeafileSession *seaf_session;
|
|
|
|
|
|
|
|
struct _HttpServer *priv;
|
|
|
|
|
|
|
|
char *bind_addr;
|
|
|
|
int bind_port;
|
|
|
|
char *http_temp_dir; /* temp dir for file upload */
|
|
|
|
char *windows_encoding;
|
2017-09-13 04:02:23 +00:00
|
|
|
int worker_threads;
|
2019-02-19 09:18:31 +00:00
|
|
|
int cluster_shared_temp_file_mode;
|
2016-08-10 06:53:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _HttpServerStruct HttpServerStruct;
|
|
|
|
|
|
|
|
HttpServerStruct *
|
|
|
|
seaf_http_server_new (struct _SeafileSession *session);
|
|
|
|
|
|
|
|
int
|
|
|
|
seaf_http_server_start (HttpServerStruct *htp_server);
|
|
|
|
|
|
|
|
int
|
|
|
|
seaf_http_server_invalidate_tokens (HttpServerStruct *htp_server,
|
|
|
|
const GList *tokens);
|
|
|
|
|
2018-08-10 09:47:19 +00:00
|
|
|
void
|
|
|
|
send_statistic_msg (const char *repo_id, char *user, char *operation, guint64 bytes);
|
2024-03-13 11:38:44 +00:00
|
|
|
#endif
|
2018-08-10 09:47:19 +00:00
|
|
|
|
2016-08-10 06:53:33 +00:00
|
|
|
#endif
|