Release v4.13441 - midsummer
[RRG-proxmark3.git] / client / src / jansson_path.h
blob7737c1634c53733f91cccbddd5d9c9ffa39fdbd2
1 /*
2 * Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
4 * Jansson is free software; you can redistribute it and/or modify
5 * it under the terms of the MIT license. See LICENSE for details.
6 */
8 #ifndef JANSSON_PATH_H
9 #define JANSSON_PATH_H
11 //#include <stdio.h>
12 #include <stdlib.h> /* for size_t */
13 //#include <stdarg.h>
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 json_t *json_path_get(const json_t *json, const char *path);
20 int json_path_set_new(json_t *json, const char *path, json_t *value, size_t flags, json_error_t *error);
22 static JSON_INLINE
23 int json_path_set(json_t *json, const char *path, json_t *value, size_t flags, json_error_t *error) {
24 return json_path_set_new(json, path, json_incref(value), flags, error);
27 #ifdef __cplusplus
29 #endif
30 #endif