1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/lib/wsfs/adapter/impl/session_manager.h

46 lines
1023 B
C
Raw Normal View History

#ifndef WSFS_ADAPTER_IMPL_SESSION_MANAGER_H
#define WSFS_ADAPTER_IMPL_SESSION_MANAGER_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
#include "wsfs/adapter/impl/session.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct lws;
struct wsfs_impl_session_manager
{
struct wsfs_impl_session session;
};
extern void wsfs_impl_session_manager_init(
struct wsfs_impl_session_manager * manager);
extern void wsfs_impl_session_manager_cleanup(
struct wsfs_impl_session_manager * manager);
extern struct wsfs_impl_session * wsfs_impl_session_manager_add(
struct wsfs_impl_session_manager * manager,
struct lws * wsi,
struct wsfs_impl_authenticators * authenticators,
struct wsfs_impl_jsonrpc_server * rpc);
extern struct wsfs_impl_session * wsfs_impl_session_manager_get(
struct wsfs_impl_session_manager * manager,
struct lws * wsi);
extern void wsfs_impl_session_manager_remove(
struct wsfs_impl_session_manager * manager,
struct lws * wsi);
#ifdef __cplusplus
}
#endif
#endif