gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 01/70: DID:Initial commit


From: gnunet
Subject: [gnunet] 01/70: DID:Initial commit
Date: Wed, 31 Aug 2022 17:59:55 +0200

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

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 8685ef460155c83ce28971cc2b36a665ca28aab8
Author: Tristan Schwieren <tristan.schwieren@tum.de>
AuthorDate: Fri Nov 19 10:46:02 2021 +0100

    DID:Initial commit
---
 configure.ac         |  1 +
 src/Makefile.am      |  3 ++-
 src/did/Makefile.am  | 17 +++++++++++++++
 src/did/gnunet-did.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 81 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 8a3574118..1e565cc8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1906,6 +1906,7 @@ src/dht/Makefile
 src/dht/dht.conf
 src/dhtu/Makefile
 src/dns/Makefile
+src/did/Makefile
 src/dns/dns.conf
 src/exit/Makefile
 src/fragmentation/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 31215c6d0..7c470b457 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,7 +5,8 @@ TESTBED = testbed-logger testbed
 
 if HAVE_EXPERIMENTAL
  EXP_DIR = \
-  rps
+  did
+  #rps
   #abd FTBFS
 if HAVE_ABE
  EXP_DIR += \
diff --git a/src/did/Makefile.am b/src/did/Makefile.am
new file mode 100644
index 000000000..db2fb1f00
--- /dev/null
+++ b/src/did/Makefile.am
@@ -0,0 +1,17 @@
+# This Makefile.am is in the public domain
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
+
+ plugindir = $(libdir)/gnunet
+
+if USE_COVERAGE
+  AM_CFLAGS = --coverage -O0
+  XLIB = -lgcov
+endif
+
+bin_PROGRAMS = \
+ gnunet-did
+
+gnunet_did_SOURCES = \
+ gnunet-did.c
+gnunet_did_LDADD = \
+  $(top_builddir)/src/util/libgnunetutil.la
\ No newline at end of file
diff --git a/src/did/gnunet-did.c b/src/did/gnunet-did.c
new file mode 100644
index 000000000..c5d83976d
--- /dev/null
+++ b/src/did/gnunet-did.c
@@ -0,0 +1,61 @@
+/*
+   This file is part of GNUnet.
+   Copyright (C) 2012-2015 GNUnet e.V.
+
+   GNUnet is free software: you can redistribute it and/or modify it
+   under the terms of the GNU Affero General Public License as published
+   by the Free Software Foundation, either version 3 of the License,
+   or (at your option) any later version.
+
+   GNUnet 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
+   Affero General Public License for more details.
+
+   You should have received a copy of the GNU Affero General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
+ */
+/**
+ * @author Tristan Schwieren
+ * @file src/did/gnunet-did.c
+ * @brief DID Method Wrapper 
+ *
+ */
+#include "platform.h"
+#include "gnunet_util_lib.h"
+
+/**
+ * return value
+ */
+static int ret;
+
+static void
+run (void *cls,
+     char *const *args,
+     const char *cfgfile,
+     const struct GNUNET_CONFIGURATION_Handle *c)
+{
+  printf("Hello World!\n");
+  ret = 0;
+}
+
+int
+main (int argc, char *const argv[])
+{
+  struct GNUNET_GETOPT_CommandLineOption options[] = {
+    GNUNET_GETOPT_OPTION_END
+  };
+
+  if (GNUNET_OK != GNUNET_PROGRAM_run (argc,
+                                       argv,
+                                       "gnunet-did",
+                                       ("did command line tool"),
+                                       options,
+                                       &run,
+                                       NULL))
+    return 1;
+  else
+    return ret;
+}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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