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
|
|
|
|
2019-02-25 19:17:13 +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;
|
2019-03-04 20:17:37 +00:00
|
|
|
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(
|
2019-03-04 20:17:37 +00:00
|
|
|
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
|