2019-02-25 20:35:38 +00:00
|
|
|
#ifndef WSFS_PROVIDER_PROVIDER_H
|
|
|
|
#define WSFS_PROVIDER_PROVIDER_H
|
2019-02-16 15:08:17 +00:00
|
|
|
|
2019-02-25 19:17:13 +00:00
|
|
|
#include <wsfs/provider/operation/lookup.h>
|
|
|
|
#include <wsfs/provider/operation/getattr.h>
|
|
|
|
#include <wsfs/provider/operation/readdir.h>
|
|
|
|
#include <wsfs/provider/operation/open.h>
|
|
|
|
#include <wsfs/provider/operation/close.h>
|
|
|
|
#include <wsfs/provider/operation/read.h>
|
2019-02-16 15:08:17 +00:00
|
|
|
|
|
|
|
typedef void wsfsp_connected_fn(
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
typedef void wsfsp_disconnected_fn(
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
typedef void wsfsp_ontimer_fn(
|
|
|
|
void * user_data);
|
|
|
|
|
2019-02-16 15:28:14 +00:00
|
|
|
struct wsfsp_provider
|
2019-02-16 15:08:17 +00:00
|
|
|
{
|
|
|
|
wsfsp_connected_fn * connected;
|
2019-02-16 15:28:14 +00:00
|
|
|
wsfsp_disconnected_fn * disconnected;
|
2019-02-16 15:08:17 +00:00
|
|
|
wsfsp_ontimer_fn * ontimer;
|
|
|
|
wsfsp_lookup_fn * lookup;
|
|
|
|
wsfsp_getattr_fn * getattr;
|
|
|
|
wsfsp_readdir_fn * readdir;
|
|
|
|
wsfsp_open_fn * open;
|
|
|
|
wsfsp_close_fn * close;
|
|
|
|
wsfsp_read_fn * read;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|