[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 02/03: fix
From: |
gnunet |
Subject: |
[taler-anastasis] 02/03: fix |
Date: |
Mon, 07 Sep 2020 15:45:44 +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 865210be15f6236bcfa64b12859786566a5a8663
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Mon Sep 7 15:40:57 2020 +0200
fix
---
src/include/anastasis_json.h | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/include/anastasis_json.h b/src/include/anastasis_json.h
index 3aff042..13dd0ef 100644
--- a/src/include/anastasis_json.h
+++ b/src/include/anastasis_json.h
@@ -78,7 +78,7 @@ struct TruthState
*
* @param conf_filename name of config file
* @param country_code country code (Alpha-2 code)
- * @return reference to json object
+ * @return reference to json object containing data of specified country
*/
json_t *
ANASTASIS_JSON_get_country_conf (
@@ -103,7 +103,7 @@ ANASTASIS_JSON_get_default_providers (const char
*prov_filename);
* @return reference to user data
*/
struct UserData *
-ANASTASIS_JSON_user_deserialize (json_t *state_memory);
+ANASTASIS_JSON_user_deserialize (const json_t *state_memory);
/**
@@ -113,7 +113,7 @@ ANASTASIS_JSON_user_deserialize (json_t *state_memory);
* @return json object representing user data
*/
json_t *
-ANASTASIS_JSON_user_serialize (struct UserData *user);
+ANASTASIS_JSON_user_serialize (const struct UserData *user);
/**
@@ -124,7 +124,7 @@ ANASTASIS_JSON_user_serialize (struct UserData *user);
* @return array of policy states
*/
struct PolicyState **
-ANASTASIS_JSON_policies_deserialize (json_t *state_memory);
+ANASTASIS_JSON_policies_deserialize (const json_t *state_memory);
/**
@@ -135,7 +135,7 @@ ANASTASIS_JSON_policies_deserialize (json_t *state_memory);
* @return json object containing policy states
*/
json_t *
-ANASTASIS_JSON_policies_serialize (struct PolicyState **policy_states);
+ANASTASIS_JSON_policies_serialize (const struct PolicyState **policy_states);
/**
@@ -146,7 +146,7 @@ ANASTASIS_JSON_policies_serialize (struct PolicyState
**policy_states);
* @return array of truth states
*/
struct TruthState **
-ANASTASIS_JSON_truths_deserialize (json_t *state_memory);
+ANASTASIS_JSON_truths_deserialize (const json_t *state_memory);
/**
@@ -157,7 +157,7 @@ ANASTASIS_JSON_truths_deserialize (json_t *state_memory);
* @return json object containing all truth states
*/
json_t *
-ANASTASIS_JSON_truths_serialize (struct TruthState **truth_states);
+ANASTASIS_JSON_truths_serialize (const struct TruthState **truth_states);
/**
@@ -168,7 +168,7 @@ ANASTASIS_JSON_truths_serialize (struct TruthState
**truth_states);
* @return array of truth states
*/
struct ChallengeState **
-ANASTASIS_JSON_challenges_deserialize (json_t *state_memory);
+ANASTASIS_JSON_challenges_deserialize (const json_t *state_memory);
/**
@@ -179,7 +179,8 @@ ANASTASIS_JSON_challenges_deserialize (json_t
*state_memory);
* @return json object containing all truth states
*/
json_t *
-ANASTASIS_JSON_challenges_serialize (struct ChallengeState **challenge_states);
+ANASTASIS_JSON_challenges_serialize (const struct
+ ChallengeState **challenge_states);
#endif /* _ANASTASIS_JSON_H */
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.