mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
added example for provider
This commit is contained in:
@@ -16,11 +16,11 @@ extern WSFSP_API struct wsfsp_client_protocol * wsfsp_client_protocol_create(
|
||||
struct wsfsp_provider const * provider,
|
||||
void * user_data);
|
||||
|
||||
extern WSFSÜ_API void wsfsp_client_protocol_dispose(
|
||||
extern WSFSP_API void wsfsp_client_protocol_dispose(
|
||||
struct wsfsp_client_protocol * protocol);
|
||||
|
||||
extern WSFSÜ_API void wsfsp_client_protocol_init_lws(
|
||||
struct wsfs_provider_client_protocol * protocol,
|
||||
extern WSFSP_API void wsfsp_client_protocol_init_lws(
|
||||
struct wsfsp_client_protocol * protocol,
|
||||
struct lws_protocols * lws_protocol);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -16,7 +16,7 @@ using std::size_t;
|
||||
|
||||
|
||||
struct wsfsp_request;
|
||||
struct wsfs_dirbuffer;
|
||||
struct wsfsp_dirbuffer;
|
||||
|
||||
typedef void wsfsp_lookup_fn(
|
||||
struct wsfsp_request * request,
|
||||
@@ -64,10 +64,10 @@ void * user_data);
|
||||
typedef void wsfsp_ontimer_fn(
|
||||
void * user_data);
|
||||
|
||||
struct wsfsüp
|
||||
struct wsfsp_provider
|
||||
{
|
||||
wsfsp_connected_fn * connected;
|
||||
wsfsp_disconnected_fn * connected;
|
||||
wsfsp_disconnected_fn * disconnected;
|
||||
wsfsp_ontimer_fn * ontimer;
|
||||
wsfsp_lookup_fn * lookup;
|
||||
wsfsp_getattr_fn * getattr;
|
||||
@@ -88,7 +88,7 @@ extern void wsfsp_respond_error(
|
||||
|
||||
extern void wsfsp_respond_lookup(
|
||||
struct wsfsp_request * request,
|
||||
struct wsfs_stat const * stat);
|
||||
struct stat const * stat);
|
||||
|
||||
extern void wsfsp_respond_getattr(
|
||||
struct wsfsp_request * request,
|
||||
|
||||
Reference in New Issue
Block a user