mirror of
https://github.com/falk-werner/webfuse
synced 2025-06-13 12:54:15 +00:00
49 lines
811 B
C
49 lines
811 B
C
#ifndef _WSFS_PROTOCOL_H
|
|
#define _WSFS_PROTOCOL_H
|
|
|
|
#ifndef __cplusplus
|
|
#include <stdbool.h>
|
|
#endif
|
|
|
|
#include <libwebsockets.h>
|
|
#include <pthread.h>
|
|
|
|
struct wsfs_protocol;
|
|
struct wsfs_server;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern struct wsfs_protocol * wsfs_protocol_create(
|
|
struct wsfs_server * server);
|
|
|
|
extern void wsfs_protocol_dispose(
|
|
struct wsfs_protocol * protocol);
|
|
|
|
extern void wsfs_protocol_check(
|
|
struct wsfs_protocol * protocol);
|
|
|
|
extern void wsfs_protocol_init_lws(
|
|
struct wsfs_protocol * protocl,
|
|
struct lws_protocols * lws_protocol);
|
|
|
|
extern char * wsfs_protocol_message_create(
|
|
size_t size);
|
|
|
|
extern void wsfs_protocol_message_dispose(
|
|
char * message);
|
|
|
|
extern bool wsfs_protocol_send(
|
|
char * message,
|
|
size_t length,
|
|
void * user_data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|