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 ();
|
TEH_kyc_proof_cleanup ();
|
||||||
if (NULL != mhd)
|
if (NULL != mhd)
|
||||||
MHD_stop_daemon (mhd);
|
MHD_stop_daemon (mhd);
|
||||||
TEH_WIRE_done ();
|
TEH_wire_done ();
|
||||||
|
TEH_extensions_done ();
|
||||||
TEH_keys_finished ();
|
TEH_keys_finished ();
|
||||||
if (NULL != TEH_plugin)
|
if (NULL != TEH_plugin)
|
||||||
{
|
{
|
||||||
|
@ -52,14 +52,12 @@ extension_update_event_cb (void *cls,
|
|||||||
(void) extra_size;
|
(void) extra_size;
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Received /management/extensions update event\n");
|
"Received /management/extensions update event\n");
|
||||||
/* TODO !? */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
enum GNUNET_GenericReturnValue
|
enum GNUNET_GenericReturnValue
|
||||||
TEH_extensions_init ()
|
TEH_extensions_init ()
|
||||||
{
|
{
|
||||||
/* TODO */
|
|
||||||
struct GNUNET_DB_EventHeaderP es = {
|
struct GNUNET_DB_EventHeaderP es = {
|
||||||
.size = htons (sizeof (es)),
|
.size = htons (sizeof (es)),
|
||||||
.type = htons (TALER_DBEVENT_EXCHANGE_EXTENSIONS_UPDATED),
|
.type = htons (TALER_DBEVENT_EXCHANGE_EXTENSIONS_UPDATED),
|
||||||
@ -82,7 +80,12 @@ TEH_extensions_init ()
|
|||||||
void
|
void
|
||||||
TEH_extensions_done ()
|
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
|
enum GNUNET_GenericReturnValue
|
||||||
TEH_extensions_init (void);
|
TEH_extensions_init (void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Terminate the extension subsystem
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
TEH_extensions_done (void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Something changed in the database. Rebuild the extension state metadata.
|
* Something changed in the database. Rebuild the extension state metadata.
|
||||||
|
@ -130,7 +130,7 @@ TEH_wire_init ()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TEH_WIRE_done ()
|
TEH_wire_done ()
|
||||||
{
|
{
|
||||||
if (NULL != wire_state)
|
if (NULL != wire_state)
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* Clean up wire subsystem.
|
* Clean up wire subsystem.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
TEH_WIRE_done (void);
|
TEH_wire_done (void);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user