Configure (autoconf) changes: Removed libcurl dependency, Disable restconf and disable restconf options. Added empty text datastore

This commit is contained in:
Olof hagsand 2017-04-11 20:15:43 +02:00
parent af334bb746
commit 2758a30bb7
15 changed files with 812 additions and 182 deletions

View file

@ -51,7 +51,7 @@ LIBS = @LIBS@
DATASTORE = keyvalue
CPPFLAGS = @CPPFLAGS@
INCLUDES = -I. @INCLUDES@ -I$(top_srcdir)/lib/clixon -I$(top_srcdir)/include -I$(top_srcdir)
INCLUDES = -I. -I$(top_srcdir)/lib -I$(top_srcdir)/include -I$(top_srcdir) @INCLUDES@
PLUGIN = $(DATASTORE).so
@ -63,9 +63,6 @@ all: $(PLUGIN)
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
#grideye_sysinfo.so.1: grideye_sysinfo.c
# $(CC) $(CFLAGS) -shared -o $@ -lc $^ -lm
$(PLUGIN): $(SRC)
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -shared -o $@ -lc $^ $(LIBS)

View file

@ -36,6 +36,7 @@
ensure errno is set and return -1/NULL */
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
@ -45,7 +46,11 @@
#include <sys/types.h>
/* clicon */
#include "clixon_queue.h"
#include <cligen/cligen.h>
/* clicon */
#include <clixon/clixon.h>
#include "clixon_chunk.h"
/*

View file

@ -1552,7 +1552,7 @@ kv_init(clicon_handle h,
/*! plugin init function */
int
keyvalue_plugin_exit(void)
kv_plugin_exit(void)
{
return 0;
}
@ -1577,7 +1577,7 @@ static const struct xmldb_api api = {
1,
XMLDB_API_MAGIC,
clixon_xmldb_plugin_init,
keyvalue_plugin_exit,
kv_plugin_exit,
kv_get,
kv_put,
kv_dump,

View file

@ -78,9 +78,8 @@
#include <cligen/cligen.h>
/* clicon */
#include "clixon_log.h"
#include "clixon_err.h"
#include "clixon_queue.h"
#include <clixon/clixon.h>
#include "clixon_chunk.h"
#include "clixon_qdb.h"