diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-08 21:29:12 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-08 21:29:12 +0200 |
commit | a2280bff1c996cfe70326602c0204f8637c2c20b (patch) | |
tree | 084bfa8c580b1470ffb0b43dfb6c3b895bd21fe8 /src/escrow/escrow_plugin_helper.h | |
parent | 7dc7d65cd35ac00c7495d81da4456b73c1928b11 (diff) | |
download | gnunet-a2280bff1c996cfe70326602c0204f8637c2c20b.tar.gz gnunet-a2280bff1c996cfe70326602c0204f8637c2c20b.zip |
store escrow status to config
Diffstat (limited to 'src/escrow/escrow_plugin_helper.h')
-rw-r--r-- | src/escrow/escrow_plugin_helper.h | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/src/escrow/escrow_plugin_helper.h b/src/escrow/escrow_plugin_helper.h index d0409bc38..f2a54eb6b 100644 --- a/src/escrow/escrow_plugin_helper.h +++ b/src/escrow/escrow_plugin_helper.h | |||
@@ -67,9 +67,9 @@ | |||
67 | */ | 67 | */ |
68 | void | 68 | void |
69 | ESCROW_list_ego (void *cls, | 69 | ESCROW_list_ego (void *cls, |
70 | struct GNUNET_IDENTITY_Ego *ego, | 70 | struct GNUNET_IDENTITY_Ego *ego, |
71 | void **ctx, | 71 | void **ctx, |
72 | const char *identifier); | 72 | const char *identifier); |
73 | 73 | ||
74 | 74 | ||
75 | /** | 75 | /** |
@@ -79,3 +79,30 @@ ESCROW_list_ego (void *cls, | |||
79 | */ | 79 | */ |
80 | void | 80 | void |
81 | ESCROW_cleanup_ego_list (struct ESCROW_PluginHandle *ph); | 81 | ESCROW_cleanup_ego_list (struct ESCROW_PluginHandle *ph); |
82 | |||
83 | |||
84 | /** | ||
85 | * Update the status of an escrow in the configuration. | ||
86 | * | ||
87 | * @param h handle for the escrow component | ||
88 | * @param ego the ego of which the escrow status is updated | ||
89 | * @param plugin_name the name of the used plugin | ||
90 | * | ||
91 | * @return GNUNET_OK on success | ||
92 | */ | ||
93 | int | ||
94 | ESCROW_update_escrow_status (struct GNUNET_ESCROW_Handle *h, | ||
95 | struct GNUNET_IDENTITY_Ego *ego, | ||
96 | const char *plugin_name); | ||
97 | |||
98 | /** | ||
99 | * Get the status of an escrow from the configuration. | ||
100 | * | ||
101 | * @param h handle for the escrow component | ||
102 | * @param ego the ego of which the escrow status has to be obtained | ||
103 | * | ||
104 | * @return the status of the escrow, packed into a GNUNET_ESCROW_Status struct | ||
105 | */ | ||
106 | struct GNUNET_ESCROW_Status * | ||
107 | ESCROW_get_escrow_status (struct GNUNET_ESCROW_Handle *h, | ||
108 | struct GNUNET_IDENTITY_Ego *ego); | ||