2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_PATH_H
|
|
|
|
#define WFP_PATH_H
|
2019-04-26 18:49:09 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using ::std::size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_path;
|
2019-04-26 18:49:09 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern struct wfp_path *
|
|
|
|
wfp_path_create(
|
2019-04-26 18:49:09 +00:00
|
|
|
char const * value);
|
|
|
|
|
|
|
|
extern void
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_path_dispose(
|
|
|
|
struct wfp_path * path);
|
2019-04-26 18:49:09 +00:00
|
|
|
|
|
|
|
extern size_t
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_path_element_count(
|
|
|
|
struct wfp_path * path);
|
2019-04-26 18:49:09 +00:00
|
|
|
|
|
|
|
extern char const *
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_path_get_element(
|
|
|
|
struct wfp_path * path,
|
2019-04-26 18:49:09 +00:00
|
|
|
size_t i);
|
|
|
|
|
|
|
|
extern char const *
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_path_get_filename(
|
|
|
|
struct wfp_path * path);
|
2019-04-26 18:49:09 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|