moved JSON functionality to occtl/ as it was the only user

This commit is contained in:
Nikos Mavrogiannopoulos
2015-10-31 11:25:04 +01:00
parent eecb24927f
commit 27ecf50ca5
6 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ COMMON_SOURCES=../common.c ../common.h ../system.c ../system.h
occtl_SOURCES = occtl.c pager.c occtl.h time.c cache.c ip-cache.c \
nl.c ctl.h ../ctl.pb-c.c ../ctl.pb-c.h $(CCAN_SOURCES) $(COMMON_SOURCES) \
print.c ../common-json.c ../common-json.h $(PROTOBUF_SOURCES)
print.c json.c json.h $(PROTOBUF_SOURCES)
occtl_LDADD = ../../gl/libgnu.a $(LIBREADLINE_LIBS) \
$(LIBNL3_LIBS) $(LIBPROTOBUF_C_LIBS) $(LIBTALLOC_LIBS)

View File

@@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMMON_JSON_H
# define COMMON_JSON_H
#ifndef JSON_H
# define JSON_H
char *json_escape_val(char *tmp, unsigned tmp_size, const char *val);
#endif

View File

@@ -29,7 +29,7 @@
#include <c-ctype.h>
#include <occtl/occtl.h>
#include <common.h>
#include <common-json.h>
#include <json.h>
#include <c-strcase.h>
#define MAX_STR_SIZE 512

View File

@@ -34,7 +34,7 @@ AM_CPPFLAGS = \
kkdcp_parsing_SOURCES = ../src/config-kkdcp.c kkdcp-parsing.c
kkdcp_parsing_LDADD = ../gl/libgnu.a $(LIBTALLOC_LIBS)
json_escape_SOURCES = ../src/common-json.c json-escape.c
json_escape_SOURCES = ../src/occtl/json.c json-escape.c
json_escape_LDADD = ../gl/libgnu.a $(LIBTALLOC_LIBS)
ipv4_prefix_SOURCES = ../src/ip-util.c ../src/ip-util.h ipv4-prefix.c

View File

@@ -23,7 +23,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include "../src/common-json.h"
#include "../src/occtl/json.h"
static char *strings[] =
{