added TEH_extensions_done()
also: renamed TEH_WIRE_done -> TEH_wire_done
This commit is contained in:
parent
d28b42c6a2
commit
462fd2694d
@ -1799,7 +1799,8 @@ do_shutdown (void *cls)
|
||||
TEH_kyc_proof_cleanup ();
|
||||
if (NULL != mhd)
|
||||
MHD_stop_daemon (mhd);
|
||||
TEH_WIRE_done ();
|
||||
TEH_wire_done ();
|
||||
TEH_extensions_done ();
|
||||
TEH_keys_finished ();
|
||||
if (NULL != TEH_plugin)
|
||||
{
|
||||
|
@ -44,22 +44,20 @@ static struct GNUNET_DB_EventHandler *extensions_eh;
|
||||
*/
|
||||
static void
|
||||
extension_update_event_cb (void *cls,
|
||||
const void *extra,
|
||||
size_t extra_size)
|
||||
const void *extra,
|
||||
size_t extra_size)
|
||||
{
|
||||
(void) cls;
|
||||
(void) extra;
|
||||
(void) extra_size;
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"Received /management/extensions update event\n");
|
||||
/* TODO !? */
|
||||
}
|
||||
|
||||
|
||||
enum GNUNET_GenericReturnValue
|
||||
TEH_extensions_init ()
|
||||
{
|
||||
/* TODO */
|
||||
struct GNUNET_DB_EventHeaderP es = {
|
||||
.size = htons (sizeof (es)),
|
||||
.type = htons (TALER_DBEVENT_EXCHANGE_EXTENSIONS_UPDATED),
|
||||
@ -82,7 +80,12 @@ TEH_extensions_init ()
|
||||
void
|
||||
TEH_extensions_done ()
|
||||
{
|
||||
/* TODO!? */
|
||||
if (NULL != extensions_eh)
|
||||
{
|
||||
TEH_plugin->event_listen_cancel (TEH_plugin->cls,
|
||||
extensions_eh);
|
||||
extensions_eh = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,6 +34,11 @@
|
||||
enum GNUNET_GenericReturnValue
|
||||
TEH_extensions_init (void);
|
||||
|
||||
/**
|
||||
* Terminate the extension subsystem
|
||||
*/
|
||||
void
|
||||
TEH_extensions_done (void);
|
||||
|
||||
/**
|
||||
* Something changed in the database. Rebuild the extension state metadata.
|
||||
|
@ -130,7 +130,7 @@ TEH_wire_init ()
|
||||
|
||||
|
||||
void
|
||||
TEH_WIRE_done ()
|
||||
TEH_wire_done ()
|
||||
{
|
||||
if (NULL != wire_state)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@
|
||||
* Clean up wire subsystem.
|
||||
*/
|
||||
void
|
||||
TEH_WIRE_done (void);
|
||||
TEH_wire_done (void);
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user