You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
802 B
43 lines
802 B
#ifndef _WSFS_SERVER_H
|
|
#define _WSFS_SERVER_H
|
|
|
|
#include <stddef.h>
|
|
|
|
struct wsfs_server;
|
|
struct wsfs_jsonrpc;
|
|
|
|
struct wsfs_server_config
|
|
{
|
|
char * document_root;
|
|
char * key_path;
|
|
char * cert_path;
|
|
char * vhost_name;
|
|
int port;
|
|
};
|
|
|
|
extern void wsfs_server_config_clear(
|
|
struct wsfs_server_config * config);
|
|
|
|
extern struct wsfs_server * wsfs_server_create(
|
|
struct wsfs_server_config * config);
|
|
|
|
extern void wsfs_server_dispose(
|
|
struct wsfs_server * server);
|
|
|
|
extern struct wsfs_jsonrpc * wsfs_server_get_jsonrpc_service(
|
|
struct wsfs_server * server);
|
|
|
|
extern void wsfs_server_start(
|
|
struct wsfs_server * server);
|
|
|
|
extern void wsfs_server_wakeup(
|
|
struct wsfs_server * server);
|
|
|
|
extern void wsfs_server_handle_message(
|
|
struct wsfs_server * server,
|
|
char const * message,
|
|
size_t length);
|
|
|
|
#endif
|
|
|