blobmsg_json: include json.h inside blobmsg_json.c instead of the public header file

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2014-09-23 12:03:32 +02:00
parent c8fc0897cd
commit 6f2c688d68
2 changed files with 8 additions and 5 deletions

View file

@ -17,6 +17,12 @@
#include "blobmsg.h"
#include "blobmsg_json.h"
#ifdef JSONC
#include <json.h>
#else
#include <json/json.h>
#endif
bool blobmsg_add_object(struct blob_buf *b, json_object *obj)
{
json_object_object_foreach(obj, key, val) {

View file

@ -16,11 +16,8 @@
#ifndef __BLOBMSG_JSON_H
#define __BLOBMSG_JSON_H
#ifdef JSONC
#include <json.h>
#else
#include <json/json.h>
#endif
struct json_object;
typedef struct json_object json_object;
#include <stdbool.h>
#include "blobmsg.h"