2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_URL_H
|
|
|
|
#define WFP_URL_H
|
2019-02-23 14:57:57 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
2019-03-26 14:35:33 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_url
|
2019-02-23 14:57:57 +00:00
|
|
|
{
|
|
|
|
char * host;
|
|
|
|
int port;
|
|
|
|
char * path;
|
2019-02-23 15:19:00 +00:00
|
|
|
bool use_tls;
|
2019-02-23 14:57:57 +00:00
|
|
|
};
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern bool wfp_url_init(
|
|
|
|
struct wfp_url * url,
|
2019-02-23 14:57:57 +00:00
|
|
|
char const * value);
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern void wfp_url_cleanup(
|
|
|
|
struct wfp_url * url);
|
2019-02-23 14:57:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|