2019-02-16 15:08:17 +00:00
|
|
|
#ifndef _WSFSP_CLIENT_H
|
|
|
|
#define _WSFSP_CLIENT_H
|
|
|
|
|
2019-02-17 13:31:04 +00:00
|
|
|
#include "wsfsp/api.h"
|
2019-02-16 15:08:17 +00:00
|
|
|
|
2019-02-17 13:31:04 +00:00
|
|
|
struct wsfsp_provider;
|
|
|
|
struct wsfsp_client;
|
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_provider * provider,
|
2019-02-16 15:08:17 +00:00
|
|
|
void * user_data);
|
|
|
|
|
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
|