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
377 B
33 lines
377 B
4 years ago
|
#ifndef WF_URL_H
|
||
|
#define WF_URL_H
|
||
6 years ago
|
|
||
|
#ifndef __cplusplus
|
||
|
#include <stdbool.h>
|
||
|
#endif
|
||
|
|
||
6 years ago
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
4 years ago
|
struct wf_url
|
||
6 years ago
|
{
|
||
|
char * host;
|
||
|
int port;
|
||
|
char * path;
|
||
6 years ago
|
bool use_tls;
|
||
6 years ago
|
};
|
||
|
|
||
4 years ago
|
extern bool wf_url_init(
|
||
|
struct wf_url * url,
|
||
6 years ago
|
char const * value);
|
||
|
|
||
4 years ago
|
extern void wf_url_cleanup(
|
||
|
struct wf_url * url);
|
||
6 years ago
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|