diff options
Diffstat (limited to 'src/anastasis/anastasis-gtk.c')
-rw-r--r-- | src/anastasis/anastasis-gtk.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/anastasis/anastasis-gtk.c b/src/anastasis/anastasis-gtk.c index e3742a0..1ffc51a 100644 --- a/src/anastasis/anastasis-gtk.c +++ b/src/anastasis/anastasis-gtk.c @@ -58,7 +58,7 @@ struct GNUNET_CONTAINER_MultiHashMap *AG_entry_attributes; /** * Curl context for communication with taler backend */ -static struct GNUNET_CURL_Context *ctx; +struct GNUNET_CURL_Context *AG_ctx; /** * Handle to an ongoing action. @@ -123,10 +123,10 @@ shutdown_task (void *cls) AG_ra = NULL; } AG_stop_long_action (); - if (NULL != ctx) + if (NULL != AG_ctx) { - GNUNET_CURL_fini (ctx); - ctx = NULL; + GNUNET_CURL_fini (AG_ctx); + AG_ctx = NULL; } if (NULL != rc) { @@ -232,10 +232,10 @@ run (void *cls) GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); /* initialize HTTP client */ - ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule, - &rc); - rc = GNUNET_CURL_gnunet_rc_create (ctx); - ANASTASIS_redux_init (ctx); + AG_ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule, + &rc); + rc = GNUNET_CURL_gnunet_rc_create (AG_ctx); + ANASTASIS_redux_init (AG_ctx); if (0 != argc) AG_load (argv[0]); } |