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/wsfsp/request.c
2019-02-24 20:06:16 +01:00

24 lines
492 B
C

#include "wsfsp/request.h"
#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);
}