diff options
Diffstat (limited to 'src/anastasis/anastasis-gtk.h')
-rw-r--r-- | src/anastasis/anastasis-gtk.h | 53 |
1 files changed, 49 insertions, 4 deletions
diff --git a/src/anastasis/anastasis-gtk.h b/src/anastasis/anastasis-gtk.h index 7497223..54c47fb 100644 --- a/src/anastasis/anastasis-gtk.h +++ b/src/anastasis/anastasis-gtk.h | |||
@@ -61,15 +61,60 @@ extern json_t *AG_redux_state; | |||
61 | */ | 61 | */ |
62 | extern struct ANASTASIS_ReduxAction *AG_ra; | 62 | extern struct ANASTASIS_ReduxAction *AG_ra; |
63 | 63 | ||
64 | |||
64 | /** | 65 | /** |
65 | * Handle to an ongoing background action. | 66 | * State associated with a background long action. |
67 | */ | ||
68 | struct ANASTASIS_LongAction | ||
69 | { | ||
70 | /** | ||
71 | * Action handle of the background action. | ||
72 | */ | ||
73 | struct ANASTASIS_ReduxAction *ra; | ||
74 | |||
75 | /** | ||
76 | * Handle to task to reschedule the action. | ||
77 | */ | ||
78 | struct GNUNET_SCHEDULER_Task *task; | ||
79 | |||
80 | /** | ||
81 | * Next time we schedule the task. | ||
82 | */ | ||
83 | struct GNUNET_TIME_Absolute next_time; | ||
84 | |||
85 | }; | ||
86 | |||
87 | |||
88 | /** | ||
89 | * Enumeration for long poll actions we have. | ||
66 | */ | 90 | */ |
67 | extern struct ANASTASIS_ReduxAction *AG_long_action; | 91 | enum ANASTASIS_LongActionKind |
92 | { | ||
93 | /** | ||
94 | * Poll on async challenge completion. | ||
95 | */ | ||
96 | ANASTASIS_LP_POLL_CHALLENGES, | ||
97 | |||
98 | /** | ||
99 | * Poll for /config on all known providers. | ||
100 | */ | ||
101 | ANASTASIS_LP_SYNC_PROVIDERS, | ||
102 | |||
103 | /** | ||
104 | * Wait for challenge-specific providers being ready. | ||
105 | */ | ||
106 | ANASTASIS_LP_POLL_PROVIDERS, | ||
107 | |||
108 | /** | ||
109 | * Number of pollers we have. | ||
110 | */ | ||
111 | ANASTASIS_LP_CNT /* must be last! */ | ||
112 | }; | ||
68 | 113 | ||
69 | /** | 114 | /** |
70 | * Handle to task to reschedule #AG_long_action. | 115 | * Handle to an ongoing background action. |
71 | */ | 116 | */ |
72 | extern struct GNUNET_SCHEDULER_Task *AG_long_task; | 117 | extern struct ANASTASIS_LongAction AG_lacs[ANASTASIS_LP_CNT]; |
73 | 118 | ||
74 | 119 | ||
75 | /** | 120 | /** |