aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-15 20:45:44 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-15 20:45:44 +0200
commit47a9a3c95de2dfadc431d34c1dc079d35d3d6d18 (patch)
tree3aaf6de1d53a8b2853e03e56e90f725f26184cfa /src/include/gnunet_namestore_plugin.h
parent284cfac7a521ad275b7536ce1075f62b6e45ea44 (diff)
downloadgnunet-47a9a3c95de2dfadc431d34c1dc079d35d3d6d18.tar.gz
gnunet-47a9a3c95de2dfadc431d34c1dc079d35d3d6d18.zip
add transactions to namestore plugin API
Diffstat (limited to 'src/include/gnunet_namestore_plugin.h')
-rw-r--r--src/include/gnunet_namestore_plugin.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h
index 11f16b97a..d1c68cd23 100644
--- a/src/include/gnunet_namestore_plugin.h
+++ b/src/include/gnunet_namestore_plugin.h
@@ -88,7 +88,7 @@ struct GNUNET_NAMESTORE_PluginFunctions
88 const char *label, 88 const char *label,
89 unsigned int rd_count, 89 unsigned int rd_count,
90 const struct GNUNET_GNSRECORD_Data *rd); 90 const struct GNUNET_GNSRECORD_Data *rd);
91 91
92 /** 92 /**
93 * Lookup records in the datastore for which we are the authority. 93 * Lookup records in the datastore for which we are the authority.
94 * 94 *
@@ -145,6 +145,35 @@ struct GNUNET_NAMESTORE_PluginFunctions
145 void *iter_cls); 145 void *iter_cls);
146 146
147 147
148 /**
149 * Start a transaction.
150 *
151 * @param cls closure
152 * @return #GNUNET_OK on success, #GNUNET_NO if transactions are not supported,
153 * #GNUNET_SYSERR on internal errors
154 */
155 int
156 (*begin_transaction) (void *cls);
157
158
159 /**
160 * Try to commit a transaction.
161 *
162 * @param cls closure
163 * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure
164 */
165 int
166 (*commit_transaction) (void *cls);
167
168
169 /**
170 * Rollback a transaction.
171 *
172 * @param cls closure
173 */
174 void
175 (*rollback_transaction) (void *cls);
176
148}; 177};
149 178
150 179