aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-download.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-download.h')
-rw-r--r--src/fs/gnunet-fs-gtk-download.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk-download.h b/src/fs/gnunet-fs-gtk-download.h
index c150ea2b..9d4af3e4 100644
--- a/src/fs/gnunet-fs-gtk-download.h
+++ b/src/fs/gnunet-fs-gtk-download.h
@@ -28,6 +28,10 @@
28#define GNUNET_FS_GTK_DOWNLOAD_H 28#define GNUNET_FS_GTK_DOWNLOAD_H
29#include "gnunet-fs-gtk-common.h" 29#include "gnunet-fs-gtk-common.h"
30 30
31struct DownloadContext;
32
33typedef void (*GNUNET_FS_DownloadAsCallback ) (struct DownloadContext *dc);
34
31/** 35/**
32 * Information we keep for a download. 36 * Information we keep for a download.
33 */ 37 */
@@ -79,9 +83,17 @@ struct DownloadContext
79 * (this is the same as sr->tab, but sr is opaque here). 83 * (this is the same as sr->tab, but sr is opaque here).
80 */ 84 */
81 struct SearchTab *tab; 85 struct SearchTab *tab;
86
87 /**
88 * A function to call once a filename is picked.
89 */
90 GNUNET_FS_DownloadAsCallback cb;
82}; 91};
83 92
84 93
94void
95GNUNET_GTK_save_as_dialog_free_download_context (struct DownloadContext *dc);
96
85 97
86void 98void
87GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc); 99GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc);