aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_publish-edit-dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_publish-edit-dialog.h')
-rw-r--r--src/fs/gnunet-fs-gtk_publish-edit-dialog.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk_publish-edit-dialog.h b/src/fs/gnunet-fs-gtk_publish-edit-dialog.h
new file mode 100644
index 00000000..ae87d09c
--- /dev/null
+++ b/src/fs/gnunet-fs-gtk_publish-edit-dialog.h
@@ -0,0 +1,66 @@
1/*
2 This file is part of GNUnet
3 (C) 2005, 2006, 2010 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_publish-edit-dialog.h
23 * @author Christian Grothoff
24 */
25#ifndef GNUNET_FS_GTK_PUBLISH_EDIT_DIALOG_H
26#define GNUNET_FS_GTK_PUBLISH_EDIT_DIALOG_H
27
28#include "gnunet-fs-gtk-common.h"
29#include <gnunet/gnunet_util_lib.h>
30#include <gnunet/gnunet_fs_service.h>
31
32
33/**
34 * Function called when the edit publish dialog has been closed.
35 *
36 * @param cls closure
37 * @param ret GTK_RESPONSE_OK if the dialog was closed with "OK"
38 * @param root namespace root, NULL for file publishing
39 */
40typedef void (*GNUNET_FS_GTK_EditPublishDialogCallback) (gpointer cls,
41 int ret,
42 const char *root);
43
44
45/**
46 * Open the dialog to edit file information data.
47 *
48 * @param parent parent window of the dialog
49 * @param fip information about the file information that is to be edited
50 * @param allow_no_keywords is it OK to close the dialog without any keywords?
51 * also used to indicate that this is a namespace operation
52 * (FIXME: overloaded/badly-named argument)
53 * @param anon_liststore liststore with anonymity options (FIXME: bad sharing)
54 * @param cb function to call when the dialog is closed
55 * @param cb_cls closure for 'cb'
56 */
57void
58GNUNET_FS_GTK_edit_publish_dialog (GtkWindow * parent,
59 struct GNUNET_FS_FileInformation *fip,
60 int allow_no_keywords,
61 GtkListStore *anon_liststore,
62 GNUNET_FS_GTK_EditPublishDialogCallback cb,
63 gpointer cls);
64
65#endif
66/* end of gnunet-fs-gtk-edit_publish_dialog.h */