You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
394 B
33 lines
394 B
4 years ago
|
#ifndef WFP_UTIL_URL_H
|
||
|
#define WFP_UTIL_URL_H
|
||
6 years ago
|
|
||
|
#ifndef __cplusplus
|
||
|
#include <stdbool.h>
|
||
|
#endif
|
||
|
|
||
6 years ago
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
4 years ago
|
struct wfp_url
|
||
6 years ago
|
{
|
||
|
char * host;
|
||
|
int port;
|
||
|
char * path;
|
||
6 years ago
|
bool use_tls;
|
||
6 years ago
|
};
|
||
|
|
||
4 years ago
|
extern bool wfp_url_init(
|
||
|
struct wfp_url * url,
|
||
6 years ago
|
char const * value);
|
||
|
|
||
4 years ago
|
extern void wfp_url_cleanup(
|
||
|
struct wfp_url * url);
|
||
6 years ago
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|