aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/escrow_plugin_helper.h
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-08 21:29:12 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-08 21:29:12 +0200
commita2280bff1c996cfe70326602c0204f8637c2c20b (patch)
tree084bfa8c580b1470ffb0b43dfb6c3b895bd21fe8 /src/escrow/escrow_plugin_helper.h
parent7dc7d65cd35ac00c7495d81da4456b73c1928b11 (diff)
downloadgnunet-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.h33
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 */
68void 68void
69ESCROW_list_ego (void *cls, 69ESCROW_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 */
80void 80void
81ESCROW_cleanup_ego_list (struct ESCROW_PluginHandle *ph); 81ESCROW_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 */
93int
94ESCROW_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 */
106struct GNUNET_ESCROW_Status *
107ESCROW_get_escrow_status (struct GNUNET_ESCROW_Handle *h,
108 struct GNUNET_IDENTITY_Ego *ego);