gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 10/13: modified Makefile


From: gnunet
Subject: [taler-anastasis] 10/13: modified Makefile
Date: Sun, 03 May 2020 18:02:34 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 0c4143770b36075a37b52f89d56205d128eb4fad
Author: Dennis Neufeld <address@hidden>
AuthorDate: Sat May 2 08:47:20 2020 +0000

    modified Makefile
---
 src/include/anastasis_testing_lib.h | 40 +++++++++++++++++++++++++++++++++++++
 src/lib/Makefile.am                 |  4 +++-
 2 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/src/include/anastasis_testing_lib.h 
b/src/include/anastasis_testing_lib.h
index 3fa792d..b72f3e1 100644
--- a/src/include/anastasis_testing_lib.h
+++ b/src/include/anastasis_testing_lib.h
@@ -525,6 +525,46 @@ ANASTASIS_TESTING_cmd_truth_upload (const char *label,
                                     const char *upload_ref);
 
 
+/* ********************* test policy create ********************* */
+
+/**
+ * Obtain a policy from @a cmd.
+ *
+ * @param cmd command to extract the policy from.
+ * @param index the index of the policy
+ * @param t[out] set to the policy coming from @a cmd.
+ * @return #GNUNET_OK on success.
+ */
+int
+ANASTASIS_TESTING_get_trait_policy (const struct TALER_TESTING_Command *cmd,
+                                    unsigned int index,
+                                    const struct ANASTASIS_Policy **p);
+
+
+/**
+ * Offer a policy.
+ *
+ * @param index the policy's index number.
+ * @param t the policy to offer.
+ * @return #GNUNET_OK on success.
+ */
+struct TALER_TESTING_Trait
+ANASTASIS_TESTING_make_trait_policy (unsigned int index,
+                                     const struct ANASTASIS_Policy *p);
+
+
+/**
+ * Make the "policy create" command.
+ *
+ * @param label command label
+ * @param ... NULL-terminated list of truth upload commands
+ * @return the command
+ */
+struct TALER_TESTING_Command
+ANASTASIS_TESTING_cmd_policy_create (const char *label,
+                                     ...);
+
+
 /* ********************* test secret share ********************* */
 
 /**
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index e3c837d..8fb04e4 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -69,9 +69,11 @@ libanastasistesting_la_SOURCES = \
   testing_api_trait_hash.c \
   testing_api_trait_salt.c \
   testing_cmd_truth_upload.c \
+  testing_cmd_policy_create.c \
   testing_cmd_secret_share.c \
   testing_cmd_recover_secret.c \
-  testing_trait_truth.c
+  testing_trait_truth.c \
+  testing_trait_policy.c
 libanastasistesting_la_LIBADD = \
   $(top_builddir)/src/lib/libanastasisrest.la \
   -ltalerexchange \

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



reply via email to

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