2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_PROVIDER_IMPL_CLIENT_H
|
|
|
|
#define WF_PROVIDER_IMPL_CLIENT_H
|
|
|
|
|
2019-05-19 12:33:42 +00:00
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wfp_client;
|
|
|
|
struct wfp_client_config;
|
|
|
|
|
|
|
|
extern struct wfp_client * wfp_impl_client_create(
|
|
|
|
struct wfp_client_config * config);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_set_keypath(
|
|
|
|
struct wfp_client * client,
|
|
|
|
char * key_path);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_set_certpath(
|
|
|
|
struct wfp_client * client,
|
|
|
|
char * cert_path);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_connect(
|
|
|
|
struct wfp_client * client,
|
|
|
|
char const * url);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_disconnect(
|
|
|
|
struct wfp_client * client);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_dispose(
|
|
|
|
struct wfp_client * client);
|
|
|
|
|
2019-05-19 12:33:42 +00:00
|
|
|
extern bool wfp_impl_client_is_connected(
|
|
|
|
struct wfp_client * client);
|
|
|
|
|
2019-04-26 18:51:24 +00:00
|
|
|
extern void wfp_impl_client_service(
|
|
|
|
struct wfp_client * client,
|
|
|
|
int timeout_ms);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|