mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
fixes to previous commit.
This commit is contained in:
parent
000dd2db55
commit
c110e46a08
@ -1,14 +1,17 @@
|
||||
SRCS= dna.c server.c client.c peers.c ciphers.c responses.c packetformats.c dataformats.c \
|
||||
hlrdata.c srandomdev.c simulate.c batman.c export.c gateway.c \
|
||||
overlay.c overlay_buffer.c overlay_interface.c overlay_payload.c overlay_route.c \
|
||||
overlay_packetformats.c overlay_abbreviations.c overlay_advertise.c
|
||||
overlay_packetformats.c overlay_abbreviations.c overlay_advertise.c \
|
||||
rhizome.c sqlite3.c encode.c sha2.c randombytes.c
|
||||
|
||||
OBJS= dna.o server.o client.o peers.o ciphers.o responses.o packetformats.o dataformats.o \
|
||||
hlrdata.o srandomdev.o simulate.o batman.o export.o gateway.o \
|
||||
overlay.o overlay_buffer.o overlay_interface.o overlay_payload.o overlay_route.o \
|
||||
overlay_packetformats.o overlay_abbreviations.o overlay_advertise.o
|
||||
overlay_packetformats.o overlay_abbreviations.o overlay_advertise.o \
|
||||
rhizome.o sqlite3.o encode.o sha2.o randombytes.o
|
||||
|
||||
HDRS= Makefile mphlr.h sqlite-amalgamation-3070900/sqlite3.h sha2.h rhizome.h
|
||||
|
||||
HDRS= Makefile mphlr.h
|
||||
LDFLAGS= @LDFLAGS@
|
||||
CFLAGS= @CFLAGS@
|
||||
DEFS= @DEFS@
|
||||
|
@ -1,9 +1,10 @@
|
||||
#include "mphlr.h"
|
||||
#include "sqlite-amalgamation-3070900/sqlite3.h"
|
||||
#include "sha2.h"
|
||||
#include <sys/stat.h>
|
||||
#include "rhizome.h"
|
||||
|
||||
long long rhizome_space=0;
|
||||
char *rhizome_datastore_path=NULL;
|
||||
|
||||
sqlite3 *rhizome_db=NULL;
|
||||
|
||||
int rhizome_opendb()
|
||||
{
|
||||
|
10
rhizome.h
10
rhizome.h
@ -1,3 +1,7 @@
|
||||
#include "sqlite-amalgamation-3070900/sqlite3.h"
|
||||
#include "sha2.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define MAX_MANIFEST_VARS 256
|
||||
#define MAX_MANIFEST_BYTES 8192
|
||||
typedef struct rhizome_manifest {
|
||||
@ -39,10 +43,10 @@ typedef struct rhizome_manifest {
|
||||
|
||||
} rhizome_manifest;
|
||||
|
||||
long long rhizome_space=0;
|
||||
char *rhizome_datastore_path=NULL;
|
||||
extern long long rhizome_space;
|
||||
extern char *rhizome_datastore_path;
|
||||
|
||||
sqlite3 *rhizome_db=NULL;
|
||||
extern sqlite3 *rhizome_db;
|
||||
|
||||
int rhizome_manifest_createid(rhizome_manifest *m);
|
||||
int rhizome_write_manifest_file(rhizome_manifest *m,char *filename);
|
||||
|
Loading…
Reference in New Issue
Block a user