mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +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 \
|
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) \
|
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) \
|
occtl_LDADD = ../../gl/libgnu.a $(LIBREADLINE_LIBS) \
|
||||||
$(LIBNL3_LIBS) $(LIBPROTOBUF_C_LIBS) $(LIBTALLOC_LIBS)
|
$(LIBNL3_LIBS) $(LIBPROTOBUF_C_LIBS) $(LIBTALLOC_LIBS)
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COMMON_JSON_H
|
#ifndef JSON_H
|
||||||
# define COMMON_JSON_H
|
# define JSON_H
|
||||||
char *json_escape_val(char *tmp, unsigned tmp_size, const char *val);
|
char *json_escape_val(char *tmp, unsigned tmp_size, const char *val);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
#include <c-ctype.h>
|
#include <c-ctype.h>
|
||||||
#include <occtl/occtl.h>
|
#include <occtl/occtl.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <common-json.h>
|
#include <json.h>
|
||||||
#include <c-strcase.h>
|
#include <c-strcase.h>
|
||||||
|
|
||||||
#define MAX_STR_SIZE 512
|
#define MAX_STR_SIZE 512
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ AM_CPPFLAGS = \
|
|||||||
kkdcp_parsing_SOURCES = ../src/config-kkdcp.c kkdcp-parsing.c
|
kkdcp_parsing_SOURCES = ../src/config-kkdcp.c kkdcp-parsing.c
|
||||||
kkdcp_parsing_LDADD = ../gl/libgnu.a $(LIBTALLOC_LIBS)
|
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)
|
json_escape_LDADD = ../gl/libgnu.a $(LIBTALLOC_LIBS)
|
||||||
|
|
||||||
ipv4_prefix_SOURCES = ../src/ip-util.c ../src/ip-util.h ipv4-prefix.c
|
ipv4_prefix_SOURCES = ../src/ip-util.c ../src/ip-util.h ipv4-prefix.c
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include "../src/common-json.h"
|
#include "../src/occtl/json.h"
|
||||||
|
|
||||||
static char *strings[] =
|
static char *strings[] =
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user