1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-06-28 16:06:49 +00:00
seafile-server/server/http-server.h
feiniks 98315cce73
Add option to build http server (#648)
* Add option to build httpserver

* Add option to build libevhtp

* Delete unused option

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-13 19:38:44 +08:00

41 lines
850 B
C

#ifndef HTTP_SERVER_H
#define HTTP_SERVER_H
#ifdef HAVE_EVHTP
#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;
int worker_threads;
int cluster_shared_temp_file_mode;
};
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);
void
send_statistic_msg (const char *repo_id, char *user, char *operation, guint64 bytes);
#endif
#endif