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.
44 lines
569 B
44 lines
569 B
5 years ago
|
#ifndef WF_PATH_H
|
||
|
#define WF_PATH_H
|
||
|
|
||
|
#ifndef __cplusplus
|
||
|
#include <stddef.h>
|
||
|
#else
|
||
|
#include <cstddef>
|
||
|
using ::std::size_t;
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
struct wf_path;
|
||
|
|
||
|
extern struct wf_path *
|
||
|
wf_path_create(
|
||
|
char const * value);
|
||
|
|
||
|
extern void
|
||
|
wf_path_dispose(
|
||
|
struct wf_path * path);
|
||
|
|
||
|
extern size_t
|
||
|
wf_path_element_count(
|
||
|
struct wf_path * path);
|
||
|
|
||
|
extern char const *
|
||
|
wf_path_get_element(
|
||
|
struct wf_path * path,
|
||
|
size_t i);
|
||
|
|
||
|
extern char const *
|
||
|
wf_path_get_filename(
|
||
|
struct wf_path * path);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|