From 6816c87c732d97d5d78389fd49348684daf47926 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Fri, 19 Apr 2019 20:17:32 +0200 Subject: [PATCH] added path stub --- CMakeLists.txt | 3 ++- lib/webfuse/core/path.c | 34 ++++++++++++++++++++++++++++++++++ lib/webfuse/core/path.h | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 lib/webfuse/core/path.c create mode 100644 lib/webfuse/core/path.h diff --git a/CMakeLists.txt b/CMakeLists.txt index f3ab04e..44db9e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,8 @@ add_library(webfuse-core STATIC lib/webfuse/core/message.c lib/webfuse/core/message_queue.c lib/webfuse/core/status.c - lib/webfuse/core/string.c + lib/webfuse/core/string.c + lib/webfuse/core/path.c ) set_target_properties(webfuse-core PROPERTIES OUTPUT_NAME webfuse-core) diff --git a/lib/webfuse/core/path.c b/lib/webfuse/core/path.c new file mode 100644 index 0000000..609b3c7 --- /dev/null +++ b/lib/webfuse/core/path.c @@ -0,0 +1,34 @@ +#include "webfuse/core/path.h" + +struct wf_path * +wf_path_create( + char const * value) +{ + (void) value; + return NULL; +} + +void +wf_path_dispose( + struct wf_path * path) +{ + (void) path; +} + +size_t +wf_path_element_count( + struct wf_path * path) +{ + (void) path; + return 0; +} + +char const * +wf_path_get_element( + struct wf_path * path, + size_t i) +{ + (void) path; + (void) i; + return NULL; +} diff --git a/lib/webfuse/core/path.h b/lib/webfuse/core/path.h new file mode 100644 index 0000000..717195a --- /dev/null +++ b/lib/webfuse/core/path.h @@ -0,0 +1,39 @@ +#ifndef WF_PATH_H +#define WF_PATH_H + +#ifndef __cplusplus +#include +#else +#include +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); + +#ifdef __cplusplus +} +#endif + +#endif