mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
1c9d1c8420
* moves implementation to impl subdirectory * adds prefix _impl to implementation symbols * removes double compilation for shared and static libraries * fixes include guards * fixes usage of extern "C"
46 lines
1023 B
C
46 lines
1023 B
C
#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 |