2019-02-22 15:59:08 +00:00
|
|
|
#ifndef WSFSP_PROVIDER_H
|
|
|
|
#define WSFSP_PROVIDER_H
|
2019-02-16 15:08:17 +00:00
|
|
|
|
2019-02-24 17:03:22 +00:00
|
|
|
#include <wsfsp/operation/lookup.h>
|
|
|
|
#include <wsfsp/operation/getattr.h>
|
|
|
|
#include <wsfsp/operation/readdir.h>
|
|
|
|
#include <wsfsp/operation/open.h>
|
|
|
|
#include <wsfsp/operation/close.h>
|
|
|
|
#include <wsfsp/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
|