2019-03-24 01:03:31 +00:00
|
|
|
#ifndef WSFS_ADAPTER_IMPL_SESSION_MANAGER_H
|
|
|
|
#define WSFS_ADAPTER_IMPL_SESSION_MANAGER_H
|
2019-03-23 21:53:14 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
2019-03-24 00:15:29 +00:00
|
|
|
#include "wsfs/adapter/impl/session.h"
|
2019-03-23 21:53:14 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct lws;
|
|
|
|
|
2019-03-24 17:02:28 +00:00
|
|
|
struct wsfs_impl_session_manager
|
2019-03-23 21:53:14 +00:00
|
|
|
{
|
2019-03-24 17:02:28 +00:00
|
|
|
struct wsfs_impl_session session;
|
2019-03-23 21:53:14 +00:00
|
|
|
};
|
|
|
|
|
2019-03-24 17:02:28 +00:00
|
|
|
extern void wsfs_impl_session_manager_init(
|
|
|
|
struct wsfs_impl_session_manager * manager);
|
2019-03-23 21:53:14 +00:00
|
|
|
|
2019-03-24 17:02:28 +00:00
|
|
|
extern void wsfs_impl_session_manager_cleanup(
|
|
|
|
struct wsfs_impl_session_manager * manager);
|
2019-03-23 21:53:14 +00:00
|
|
|
|
2019-03-24 17:02:28 +00:00
|
|
|
extern struct wsfs_impl_session * wsfs_impl_session_manager_add(
|
|
|
|
struct wsfs_impl_session_manager * manager,
|
2019-03-23 21:53:14 +00:00
|
|
|
struct lws * wsi,
|
2019-03-24 17:02:28 +00:00
|
|
|
struct wsfs_impl_authenticators * authenticators,
|
|
|
|
struct wsfs_impl_jsonrpc_server * rpc);
|
2019-03-23 21:53:14 +00:00
|
|
|
|
2019-03-24 17:02:28 +00:00
|
|
|
extern struct wsfs_impl_session * wsfs_impl_session_manager_get(
|
|
|
|
struct wsfs_impl_session_manager * manager,
|
2019-03-23 21:53:14 +00:00
|
|
|
struct lws * wsi);
|
|
|
|
|
2019-03-24 17:02:28 +00:00
|
|
|
extern void wsfs_impl_session_manager_remove(
|
|
|
|
struct wsfs_impl_session_manager * manager,
|
2019-03-23 21:53:14 +00:00
|
|
|
struct lws * wsi);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|