mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
36 lines
580 B
C
36 lines
580 B
C
#ifndef WSFS_PROVIDER_REQUEST_H
|
|
#define WSFS_PROVIDER_REQUEST_H
|
|
|
|
#include <jansson.h>
|
|
#include "wsfs/provider/provider.h"
|
|
|
|
typedef void wsfsp_request_respond_fn(
|
|
json_t * response,
|
|
void * user_data);
|
|
|
|
struct wsfsp_request
|
|
{
|
|
wsfsp_request_respond_fn * respond;
|
|
void * user_data;
|
|
int id;
|
|
};
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
extern struct wsfsp_request * wsfsp_request_create(
|
|
struct wsfsp_request * prototype,
|
|
int id);
|
|
|
|
extern void wsfsp_request_dispose(
|
|
struct wsfsp_request * request);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|