aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk.h')
-rw-r--r--src/anastasis/anastasis-gtk.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/anastasis/anastasis-gtk.h b/src/anastasis/anastasis-gtk.h
index a4672a8..27d23f3 100644
--- a/src/anastasis/anastasis-gtk.h
+++ b/src/anastasis/anastasis-gtk.h
@@ -56,6 +56,25 @@ extern json_t *AG_redux_state;
*/
extern struct ANASTASIS_ReduxAction *AG_ra;
+/**
+ * Handle to an ongoing background action.
+ */
+extern struct ANASTASIS_ReduxAction *AG_long_action;
+
+/**
+ * Handle to task to reschedule #AG_long_action.
+ */
+extern struct GNUNET_SCHEDULER_Task *AG_long_task;
+
+
+/**
+ * Stop long polling action in the background.
+ * Should be called whenever we leave the
+ * challenge-selecting state.
+ */
+void
+AG_stop_long_action (void);
+
/**
* Load #AG_redux_state from @a filename.