1
0
mirror of https://github.com/falk-werner/webfuse synced 2025-06-09 19:04:17 +00:00
falk-werner_webfuse/lib/wsfs/provider/impl/dirbuffer.h
Falk Werner 1c9d1c8420
feat(API wrapper): separates implementation from public API
* moves implementation to impl subdirectory
* adds prefix _impl to implementation symbols
* removes double compilation for shared and static libraries
* fixes include guards
* fixes usage of extern "C"
2019-03-26 15:35:33 +01:00

38 lines
642 B
C

#ifndef WSFS_PROVIDER_IMPL_DIRBUFFER_H
#define WSFS_PROVIDER_IMPL_DIRBUFFER_H
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <jansson.h>
#ifdef __cplusplus
extern "C"
{
#endif
struct wsfsp_dirbuffer
{
json_t * entries;
};
extern struct wsfsp_dirbuffer * wsfsp_impl_dirbuffer_create(void);
extern void wsfsp_impl_dirbuffer_dispose(
struct wsfsp_dirbuffer * buffer);
extern void wsfsp_impl_dirbuffer_add(
struct wsfsp_dirbuffer * buffer,
char const * name,
ino_t inode);
extern json_t * wsfsp_impl_dirbuffer_take(
struct wsfsp_dirbuffer * buffer);
#ifdef __cplusplus
}
#endif
#endif