diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-18 19:03:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-18 19:03:26 +0000 |
commit | c456c5bb7f9b95d1800ad6e2892a77f40a08493e (patch) | |
tree | 8b04e75f8a65225848816d8e588b28413ff9d758 /src/fs/fs_api.h | |
parent | 6d0a62078edfa5c0001acb93d517c674c5124f4e (diff) | |
download | gnunet-c456c5bb7f9b95d1800ad6e2892a77f40a08493e.tar.gz gnunet-c456c5bb7f9b95d1800ad6e2892a77f40a08493e.zip |
make all (?) asynchronously operating FS operations actually cancel-able
Diffstat (limited to 'src/fs/fs_api.h')
-rw-r--r-- | src/fs/fs_api.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/fs/fs_api.h b/src/fs/fs_api.h index 42daa7bc2..de66ac661 100644 --- a/src/fs/fs_api.h +++ b/src/fs/fs_api.h | |||
@@ -1161,6 +1161,18 @@ struct GNUNET_FS_PublishContext | |||
1161 | struct GNUNET_DATASTORE_QueueEntry *qre; | 1161 | struct GNUNET_DATASTORE_QueueEntry *qre; |
1162 | 1162 | ||
1163 | /** | 1163 | /** |
1164 | * Context for SKS publishing operation that is part of this publishing operation | ||
1165 | * (NULL if not active). | ||
1166 | */ | ||
1167 | struct GNUNET_FS_PublishSksContext *sks_pc; | ||
1168 | |||
1169 | /** | ||
1170 | * Context for KSK publishing operation that is part of this publishing operation | ||
1171 | * (NULL if not active). | ||
1172 | */ | ||
1173 | struct GNUNET_FS_PublishKskContext *ksk_pc; | ||
1174 | |||
1175 | /** | ||
1164 | * ID of the task performing the upload. NO_TASK if the upload has | 1176 | * ID of the task performing the upload. NO_TASK if the upload has |
1165 | * completed. | 1177 | * completed. |
1166 | */ | 1178 | */ |
@@ -1178,17 +1190,6 @@ struct GNUNET_FS_PublishContext | |||
1178 | uint32_t reserve_entries; | 1190 | uint32_t reserve_entries; |
1179 | 1191 | ||
1180 | /** | 1192 | /** |
1181 | * Typically GNUNET_NO. Set to GNUNET_YES if "upload_task" is | ||
1182 | * GNUNET_SCHEDULER_NO_TASK and we're waiting for a response from | ||
1183 | * the datastore service (in which case this struct must not be | ||
1184 | * freed until we have that response). If someone tries to stop the | ||
1185 | * download for good during this period, "in_network_wait" is set to | ||
1186 | * GNUNET_SYSERR which will cause the struct to be destroyed right | ||
1187 | * after we have the reply (or timeout) from the datastore service. | ||
1188 | */ | ||
1189 | int in_network_wait; | ||
1190 | |||
1191 | /** | ||
1192 | * Options for publishing. | 1193 | * Options for publishing. |
1193 | */ | 1194 | */ |
1194 | enum GNUNET_FS_PublishOptions options; | 1195 | enum GNUNET_FS_PublishOptions options; |