1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/include/wsfs/provider/client.h

52 lines
1.0 KiB
C
Raw Normal View History

2019-02-25 20:35:38 +00:00
#ifndef WSFS_PROVIDER_CLIENT_H
#define WSFS_PROVIDER_CLIENT_H
2019-02-16 15:08:17 +00:00
#include "wsfs/provider/api.h"
2019-02-16 15:08:17 +00:00
2019-02-17 13:31:04 +00:00
struct wsfsp_client;
struct wsfsp_client_config;
2019-02-16 15:08:17 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
2019-02-17 13:31:04 +00:00
extern WSFSP_API struct wsfsp_client * wsfsp_client_create(
struct wsfsp_client_config * config);
extern WSFSP_API void wsfsp_client_set_keypath(
struct wsfsp_client * client,
char * key_path);
extern WSFSP_API void wsfsp_client_set_certpath(
struct wsfsp_client * client,
char * cert_path);
2019-02-16 15:08:17 +00:00
2019-02-17 13:31:04 +00:00
extern WSFSP_API void wsfsp_client_connect(
struct wsfsp_client * client,
2019-02-16 15:08:17 +00:00
char const * url);
2019-02-17 13:31:04 +00:00
extern WSFSP_API void wsfsp_client_disconnect(
struct wsfsp_client * client);
2019-02-16 15:08:17 +00:00
2019-02-17 13:31:04 +00:00
extern WSFSP_API void wsfsp_client_settimeout(
struct wsfsp_client * client,
2019-02-16 15:08:17 +00:00
unsigned int timepoint);
2019-02-17 13:31:04 +00:00
extern WSFSP_API void wsfsp_client_dispose(
struct wsfsp_client * client);
2019-02-16 15:08:17 +00:00
2019-02-17 13:31:04 +00:00
extern WSFSP_API void wsfsp_client_run(
struct wsfsp_client * client);
2019-02-16 15:08:17 +00:00
2019-02-17 13:31:04 +00:00
extern WSFSP_API void wsfsp_client_shutdown(
struct wsfsp_client * client);
2019-02-16 15:08:17 +00:00
#ifdef __cplusplus
}
#endif
#endif