aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_unindex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_unindex.h')
-rw-r--r--src/fs/gnunet-fs-gtk_unindex.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk_unindex.h b/src/fs/gnunet-fs-gtk_unindex.h
new file mode 100644
index 00000000..d21425a5
--- /dev/null
+++ b/src/fs/gnunet-fs-gtk_unindex.h
@@ -0,0 +1,99 @@
1/*
2 This file is part of GNUnet
3 (C) 2012 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file src/fs/gnunet-fs-gtk_unindex.h
23 * @author Christian Grothoff
24 */
25#ifndef GNUNET_FS_GTK_UNINDEX_H
26#define GNUNET_FS_GTK_UNINDEX_H
27
28#include "gnunet-fs-gtk.h"
29#include "gnunet-fs-gtk_common.h"
30#include "gnunet-fs-gtk_event-handler.h"
31
32
33/**
34 * Information for a specific unindex operation.
35 */
36struct UnindexEntry;
37
38
39/**
40 * An unindex operation resumed. Setup the
41 * internal context for Gtk.
42 *
43 * @param fs unindex context with the FS library
44 * @param filename name of file being unindexed
45 * @param filesize size of the file
46 * @param completed how many bytes were done so far
47 * @param emsg NULL if everything is fine, otherwise error message
48 */
49struct UnindexEntry *
50GNUNET_FS_GTK_unindex_handle_resume_ (struct GNUNET_FS_UnindexContext *uc,
51 const char *filename,
52 uint64_t filesize,
53 uint64_t completed,
54 const char *emsg);
55
56
57/**
58 * FS notified us that our undex operation was stopped.
59 *
60 * @param ue operation that stopped
61 */
62void
63GNUNET_FS_GTK_unindex_handle_stop_ (struct UnindexEntry *ue);
64
65
66/**
67 * FS notified us that our undex operation had an error.
68 *
69 * @param ue operation that
70 * @param emsg error message
71 */
72void
73GNUNET_FS_GTK_unindex_handle_error_ (struct UnindexEntry *ue,
74 const char *emsg);
75
76
77/**
78 * FS notified us that our undex operation made progress
79 *
80 * @param ue operation that made progress
81 * @param completed number of bytes completed now
82 */
83void
84GNUNET_FS_GTK_unindex_handle_progress_ (struct UnindexEntry *ue,
85 uint64_t completed);
86
87
88/**
89 * FS notified us that our undex operation completed
90 *
91 * @param ue operation that completed
92 */
93void
94GNUNET_FS_GTK_unindex_handle_completed_ (struct UnindexEntry *ue);
95
96
97
98
99#endif