mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
moved JSON functionality to occtl/ as it was the only user
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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[] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user