gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: init config


From: gnunet
Subject: [taler-anastasis] branch master updated: init config
Date: Mon, 06 Apr 2020 10:47:35 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 120ebda  init config
120ebda is described below

commit 120ebda985096346ff76d6c758f35fab46e6c6b6
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Apr 6 10:47:33 2020 +0200

    init config
---
 src/backend/anastasis-httpd.c    |  6 ++++++
 src/include/Makefile.am          |  1 +
 src/include/anastasis_util_lib.h | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)

diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 3aea595..18ef8e9 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -23,6 +23,7 @@
 #include <gnunet/gnunet_util_lib.h>
 #include <taler/taler_mhd_lib.h>
 #include "anastasis-httpd.h"
+#include "anastasis_util_lib.h"
 #include "anastasis-httpd_mhd.h"
 #include "anastasis_database_lib.h"
 #include "anastasis-httpd_policy.h"
@@ -636,6 +637,11 @@ main (int argc,
     GNUNET_GETOPT_OPTION_END
   };
 
+  /* FIRST get the libtalerutil initialization out
+     of the way. Then throw that one away, and force
+     the SYNC defaults to be used! */
+  (void) TALER_project_data_default ();
+  GNUNET_OS_init (ANASTASIS_project_data_default ());
   if (GNUNET_OK !=
       GNUNET_PROGRAM_run (argc, argv,
                           "anastasis-httpd",
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index 6300b5d..8bf83ba 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -9,5 +9,6 @@ anastasisinclude_HEADERS = \
   anastasis_service.h \
   anastasis_error_codes.h \
   anastasis_database_lib.h \
+  anastasis_util_lib.h \
   anastasis_crypto_lib.h \
   anastasis.h
diff --git a/src/include/anastasis_util_lib.h b/src/include/anastasis_util_lib.h
new file mode 100644
index 0000000..9b21f0b
--- /dev/null
+++ b/src/include/anastasis_util_lib.h
@@ -0,0 +1,34 @@
+/*
+  This file is part of Anastasis
+  Copyright (C) 2020 Taler Systems SA
+
+  Anastasis is free software; you can redistribute it and/or modify it under 
the
+  terms of the GNU Lesser General Public License as published by the Free 
Software
+  Foundation; either version 3, or (at your option) any later version.
+
+  Anastasis is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License along with
+  Anastasis; see the file COPYING.GPL.  If not, see 
<http://www.gnu.org/licenses/>
+*/
+/**
+ * @file include/anastasis_util_lib.h
+ * @brief anastasis client api
+ * @author Christian Grothoff
+ * @author Dominik Meister
+ * @author Dennis Neufeld
+ */
+#ifndef ANASTASIS_UTIL_LIB_H
+#define ANASTASIS_UTIL_LIB_H
+
+#include <gnunet/gnunet_util_lib.h>
+
+/**
+ * Return default project data used by Anastasis.
+ */
+const struct GNUNET_OS_ProjectData *
+ANASTASIS_project_data_default (void);
+
+#endif

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]