-
Jakob Olsson authoredJakob Olsson authored
json-validator.h 533 B
#ifndef JSON_VALIDATOR_H
#define JSON_VALIDATOR_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdbool.h>
enum schema_call_t {
SCHEMA_INPUT_CALL,
SCHEMA_OUTPUT_CALL
};
int schema_validator_destroy(void);
int schema_validator_init(void);
bool schema_validator_validate_jobj(struct json_object *j_object, char *object, char *method, enum schema_call_t type);
bool schema_validator_validate_blob(struct blob_attr *msg, const char *object, const char *method, enum schema_call_t type);
#ifdef __cplusplus
}
#endif
#endif