1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/lib/wsfs/provider/request.c

24 lines
500 B
C
Raw Normal View History

#include "wsfs/provider/request.h"
2019-02-24 19:06:16 +00:00
#include <stdlib.h>
struct wsfsp_request * wsfsp_request_create(
struct wsfsp_request * prototype,
int id)
{
struct wsfsp_request * request = malloc(sizeof(struct wsfsp_request));
if (NULL != request)
{
request->respond = prototype->respond;
request->user_data = prototype->user_data;
request->id = id;
}
return request;
}
void wsfsp_request_dispose(
struct wsfsp_request * request)
{
free(request);
}