1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/lib/webfuse/impl/mountpoint.h

60 lines
1009 B
C
Raw Normal View History

2020-02-15 14:11:35 +00:00
#ifndef WF_IMPL_MOUNTPOINT_H
#define WF_IMPL_MOUNTPOINT_H
2020-06-28 13:51:34 +00:00
#include "webfuse/mountpoint.h"
#ifndef __cplusplus
#include <stddef.h>
#else
#include <cstddef>
#endif
2020-02-15 14:11:35 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
struct wf_mountoptions
{
char * * items;
size_t size;
size_t capacity;
};
struct wf_mountpoint
{
char * path;
void * user_data;
wf_mountpoint_userdata_dispose_fn * dispose;
struct wf_mountoptions options;
};
2020-02-15 14:11:35 +00:00
extern struct wf_mountpoint *
wf_impl_mountpoint_create(
char const * path);
extern void
2020-02-15 14:11:35 +00:00
wf_impl_mountpoint_dispose(
struct wf_mountpoint * mountpoint);
extern char const *
2020-02-15 14:11:35 +00:00
wf_impl_mountpoint_get_path(
struct wf_mountpoint const * mountpoint);
extern void
2020-02-16 03:02:23 +00:00
wf_impl_mountpoint_set_userdata(
struct wf_mountpoint * mountpoint,
void * user_data,
wf_mountpoint_userdata_dispose_fn * dispose);
2020-02-15 14:11:35 +00:00
extern void
wf_impl_mountpoint_add_mountoption(
struct wf_mountpoint * mountpoint,
char const * option);
2020-02-15 14:11:35 +00:00
#ifdef __cplusplus
}
#endif
#endif