aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 1eab06fc8..61c764a53 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2146,6 +2146,52 @@ struct TALER_EXCHANGEDB_Plugin
2146 2146
2147 2147
2148 /** 2148 /**
2149 * Register callback to be invoked on events of type @a es.
2150 *
2151 * @param cls database context to use
2152 * @param session connection to use
2153 * @param es specification of the event to listen for
2154 * @param cb function to call when the event happens, possibly
2155 * multiple times (until cancel is invoked)
2156 * @param cb_cls closure for @a cb
2157 * @return handle useful to cancel the listener
2158 */
2159 struct GNUNET_DB_EventHandler *
2160 (*event_listen)(void *cls,
2161 struct TALER_EXCHANGEDB_Session *session,
2162 const struct GNUNET_DB_EventHeaderP *es,
2163 GNUNET_DB_EventCallback cb,
2164 void *cb_cls);
2165
2166 /**
2167 * Stop notifications.
2168 *
2169 * @param cls database context to use
2170 * @param eh handle to unregister.
2171 */
2172 void
2173 (*event_listen_cancel)(void *cls,
2174 struct GNUNET_DB_EventHandler *eh);
2175
2176
2177 /**
2178 * Notify all that listen on @a es of an event.
2179 *
2180 * @param cls database context to use
2181 * @param session connection to use
2182 * @param es specification of the event to generate
2183 * @param extra additional event data provided
2184 * @param extra_size number of bytes in @a extra
2185 */
2186 void
2187 (*event_notify)(void *cls,
2188 struct TALER_EXCHANGEDB_Session *session,
2189 const struct GNUNET_DB_EventHeaderP *es,
2190 const void *extra,
2191 size_t extra_size);
2192
2193
2194 /**
2149 * Insert information about a denomination key and in particular 2195 * Insert information about a denomination key and in particular
2150 * the properties (value, fees, expiration times) the coins signed 2196 * the properties (value, fees, expiration times) the coins signed
2151 * with this key have. 2197 * with this key have.