You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
330 B
22 lines
330 B
5 years ago
|
#ifndef _WSFS_RESPONSE_PARSER_H
|
||
|
#define _WFSF_RESPONSE_PARSER_H
|
||
|
|
||
|
#include <stddef.h>
|
||
|
#include <jansson.h>
|
||
|
#include "wsfs/status.h"
|
||
|
|
||
|
struct wsfs_response
|
||
|
{
|
||
|
wsfs_status status;
|
||
|
int id;
|
||
|
json_t * result;
|
||
|
};
|
||
|
|
||
|
extern void wsfs_response_parse(
|
||
|
char const * buffer,
|
||
|
size_t buffer_length,
|
||
|
struct wsfs_response * response);
|
||
|
|
||
|
#endif
|
||
|
|