diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-04-24 06:02:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-04-24 06:02:15 +0000 |
commit | 9d83324ea2394706cc3b9571343f690e264e47a2 (patch) | |
tree | e5190005af4c6445eb810d61d3ae2b089d8e7f2f | |
parent | b94f12266070b43d9826be7ce4585482445942d9 (diff) | |
download | gnunet-gtk-9d83324ea2394706cc3b9571343f690e264e47a2.tar.gz gnunet-gtk-9d83324ea2394706cc3b9571343f690e264e47a2.zip |
update to latest ECRS/FSUI APIs in HEAD
-rw-r--r-- | INSTALL | 106 | ||||
-rw-r--r-- | ltmain.sh | 2 | ||||
-rw-r--r-- | mkinstalldirs | 29 | ||||
-rw-r--r-- | src/plugins/fs/directory.c | 5 | ||||
-rw-r--r-- | src/plugins/fs/download.c | 5 | ||||
-rw-r--r-- | src/plugins/fs/meta.c | 6 | ||||
-rw-r--r-- | src/plugins/fs/search.c | 5 | ||||
-rw-r--r-- | src/plugins/fs/upload.c | 5 |
8 files changed, 87 insertions, 76 deletions
@@ -1,13 +1,19 @@ | |||
1 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software | 1 | Installation Instructions |
2 | Foundation, Inc. | 2 | ************************* |
3 | 3 | ||
4 | This file is free documentation; the Free Software Foundation gives | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, |
5 | 2006, 2007 Free Software Foundation, Inc. | ||
6 | |||
7 | This file is free documentation; the Free Software Foundation gives | ||
5 | unlimited permission to copy, distribute and modify it. | 8 | unlimited permission to copy, distribute and modify it. |
6 | 9 | ||
7 | Basic Installation | 10 | Basic Installation |
8 | ================== | 11 | ================== |
9 | 12 | ||
10 | These are generic installation instructions. | 13 | Briefly, the shell commands `./configure; make; make install' should |
14 | configure, build, and install this package. The following | ||
15 | more-detailed instructions are generic; see the `README' file for | ||
16 | instructions specific to this package. | ||
11 | 17 | ||
12 | The `configure' shell script attempts to guess correct values for | 18 | The `configure' shell script attempts to guess correct values for |
13 | various system-dependent variables used during compilation. It uses | 19 | various system-dependent variables used during compilation. It uses |
@@ -20,9 +26,9 @@ debugging `configure'). | |||
20 | 26 | ||
21 | It can also use an optional file (typically called `config.cache' | 27 | It can also use an optional file (typically called `config.cache' |
22 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | 28 | and enabled with `--cache-file=config.cache' or simply `-C') that saves |
23 | the results of its tests to speed up reconfiguring. (Caching is | 29 | the results of its tests to speed up reconfiguring. Caching is |
24 | disabled by default to prevent problems with accidental use of stale | 30 | disabled by default to prevent problems with accidental use of stale |
25 | cache files.) | 31 | cache files. |
26 | 32 | ||
27 | If you need to do unusual things to compile the package, please try | 33 | If you need to do unusual things to compile the package, please try |
28 | to figure out how `configure' could check whether to do them, and mail | 34 | to figure out how `configure' could check whether to do them, and mail |
@@ -32,20 +38,17 @@ some point `config.cache' contains results you don't want to keep, you | |||
32 | may remove or edit it. | 38 | may remove or edit it. |
33 | 39 | ||
34 | The file `configure.ac' (or `configure.in') is used to create | 40 | The file `configure.ac' (or `configure.in') is used to create |
35 | `configure' by a program called `autoconf'. You only need | 41 | `configure' by a program called `autoconf'. You need `configure.ac' if |
36 | `configure.ac' if you want to change it or regenerate `configure' using | 42 | you want to change it or regenerate `configure' using a newer version |
37 | a newer version of `autoconf'. | 43 | of `autoconf'. |
38 | 44 | ||
39 | The simplest way to compile this package is: | 45 | The simplest way to compile this package is: |
40 | 46 | ||
41 | 1. `cd' to the directory containing the package's source code and type | 47 | 1. `cd' to the directory containing the package's source code and type |
42 | `./configure' to configure the package for your system. If you're | 48 | `./configure' to configure the package for your system. |
43 | using `csh' on an old version of System V, you might need to type | ||
44 | `sh ./configure' instead to prevent `csh' from trying to execute | ||
45 | `configure' itself. | ||
46 | 49 | ||
47 | Running `configure' takes awhile. While running, it prints some | 50 | Running `configure' might take a while. While running, it prints |
48 | messages telling which features it is checking for. | 51 | some messages telling which features it is checking for. |
49 | 52 | ||
50 | 2. Type `make' to compile the package. | 53 | 2. Type `make' to compile the package. |
51 | 54 | ||
@@ -64,54 +67,55 @@ The simplest way to compile this package is: | |||
64 | all sorts of other programs in order to regenerate files that came | 67 | all sorts of other programs in order to regenerate files that came |
65 | with the distribution. | 68 | with the distribution. |
66 | 69 | ||
70 | 6. Often, you can also type `make uninstall' to remove the installed | ||
71 | files again. | ||
72 | |||
67 | Compilers and Options | 73 | Compilers and Options |
68 | ===================== | 74 | ===================== |
69 | 75 | ||
70 | Some systems require unusual options for compilation or linking that | 76 | Some systems require unusual options for compilation or linking that the |
71 | the `configure' script does not know about. Run `./configure --help' | 77 | `configure' script does not know about. Run `./configure --help' for |
72 | for details on some of the pertinent environment variables. | 78 | details on some of the pertinent environment variables. |
73 | 79 | ||
74 | You can give `configure' initial values for configuration parameters | 80 | You can give `configure' initial values for configuration parameters |
75 | by setting variables in the command line or in the environment. Here | 81 | by setting variables in the command line or in the environment. Here |
76 | is an example: | 82 | is an example: |
77 | 83 | ||
78 | ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix | 84 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix |
79 | 85 | ||
80 | *Note Defining Variables::, for more details. | 86 | *Note Defining Variables::, for more details. |
81 | 87 | ||
82 | Compiling For Multiple Architectures | 88 | Compiling For Multiple Architectures |
83 | ==================================== | 89 | ==================================== |
84 | 90 | ||
85 | You can compile the package for more than one kind of computer at the | 91 | You can compile the package for more than one kind of computer at the |
86 | same time, by placing the object files for each architecture in their | 92 | same time, by placing the object files for each architecture in their |
87 | own directory. To do this, you must use a version of `make' that | 93 | own directory. To do this, you can use GNU `make'. `cd' to the |
88 | supports the `VPATH' variable, such as GNU `make'. `cd' to the | ||
89 | directory where you want the object files and executables to go and run | 94 | directory where you want the object files and executables to go and run |
90 | the `configure' script. `configure' automatically checks for the | 95 | the `configure' script. `configure' automatically checks for the |
91 | source code in the directory that `configure' is in and in `..'. | 96 | source code in the directory that `configure' is in and in `..'. |
92 | 97 | ||
93 | If you have to use a `make' that does not support the `VPATH' | 98 | With a non-GNU `make', it is safer to compile the package for one |
94 | variable, you have to compile the package for one architecture at a | 99 | architecture at a time in the source code directory. After you have |
95 | time in the source code directory. After you have installed the | 100 | installed the package for one architecture, use `make distclean' before |
96 | package for one architecture, use `make distclean' before reconfiguring | 101 | reconfiguring for another architecture. |
97 | for another architecture. | ||
98 | 102 | ||
99 | Installation Names | 103 | Installation Names |
100 | ================== | 104 | ================== |
101 | 105 | ||
102 | By default, `make install' will install the package's files in | 106 | By default, `make install' installs the package's commands under |
103 | `/usr/local/bin', `/usr/local/man', etc. You can specify an | 107 | `/usr/local/bin', include files under `/usr/local/include', etc. You |
104 | installation prefix other than `/usr/local' by giving `configure' the | 108 | can specify an installation prefix other than `/usr/local' by giving |
105 | option `--prefix=PATH'. | 109 | `configure' the option `--prefix=PREFIX'. |
106 | 110 | ||
107 | You can specify separate installation prefixes for | 111 | You can specify separate installation prefixes for |
108 | architecture-specific files and architecture-independent files. If you | 112 | architecture-specific files and architecture-independent files. If you |
109 | give `configure' the option `--exec-prefix=PATH', the package will use | 113 | pass the option `--exec-prefix=PREFIX' to `configure', the package uses |
110 | PATH as the prefix for installing programs and libraries. | 114 | PREFIX as the prefix for installing programs and libraries. |
111 | Documentation and other data files will still use the regular prefix. | 115 | Documentation and other data files still use the regular prefix. |
112 | 116 | ||
113 | In addition, if you use an unusual directory layout you can give | 117 | In addition, if you use an unusual directory layout you can give |
114 | options like `--bindir=PATH' to specify different values for particular | 118 | options like `--bindir=DIR' to specify different values for particular |
115 | kinds of files. Run `configure --help' for a list of the directories | 119 | kinds of files. Run `configure --help' for a list of the directories |
116 | you can set and what kinds of files go in them. | 120 | you can set and what kinds of files go in them. |
117 | 121 | ||
@@ -122,7 +126,7 @@ option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | |||
122 | Optional Features | 126 | Optional Features |
123 | ================= | 127 | ================= |
124 | 128 | ||
125 | Some packages pay attention to `--enable-FEATURE' options to | 129 | Some packages pay attention to `--enable-FEATURE' options to |
126 | `configure', where FEATURE indicates an optional part of the package. | 130 | `configure', where FEATURE indicates an optional part of the package. |
127 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | 131 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
128 | is something like `gnu-as' or `x' (for the X Window System). The | 132 | is something like `gnu-as' or `x' (for the X Window System). The |
@@ -137,11 +141,11 @@ you can use the `configure' options `--x-includes=DIR' and | |||
137 | Specifying the System Type | 141 | Specifying the System Type |
138 | ========================== | 142 | ========================== |
139 | 143 | ||
140 | There may be some features `configure' cannot figure out | 144 | There may be some features `configure' cannot figure out automatically, |
141 | automatically, but needs to determine by the type of machine the package | 145 | but needs to determine by the type of machine the package will run on. |
142 | will run on. Usually, assuming the package is built to be run on the | 146 | Usually, assuming the package is built to be run on the _same_ |
143 | _same_ architectures, `configure' can figure that out, but if it prints | 147 | architectures, `configure' can figure that out, but if it prints a |
144 | a message saying it cannot guess the machine type, give it the | 148 | message saying it cannot guess the machine type, give it the |
145 | `--build=TYPE' option. TYPE can either be a short name for the system | 149 | `--build=TYPE' option. TYPE can either be a short name for the system |
146 | type, such as `sun4', or a canonical name which has the form: | 150 | type, such as `sun4', or a canonical name which has the form: |
147 | 151 | ||
@@ -156,7 +160,7 @@ where SYSTEM can have one of these forms: | |||
156 | need to know the machine type. | 160 | need to know the machine type. |
157 | 161 | ||
158 | If you are _building_ compiler tools for cross-compiling, you should | 162 | If you are _building_ compiler tools for cross-compiling, you should |
159 | use the `--target=TYPE' option to select the type of system they will | 163 | use the option `--target=TYPE' to select the type of system they will |
160 | produce code for. | 164 | produce code for. |
161 | 165 | ||
162 | If you want to _use_ a cross compiler, that generates code for a | 166 | If you want to _use_ a cross compiler, that generates code for a |
@@ -167,9 +171,9 @@ eventually be run) with `--host=TYPE'. | |||
167 | Sharing Defaults | 171 | Sharing Defaults |
168 | ================ | 172 | ================ |
169 | 173 | ||
170 | If you want to set default values for `configure' scripts to share, | 174 | If you want to set default values for `configure' scripts to share, you |
171 | you can create a site shell script called `config.site' that gives | 175 | can create a site shell script called `config.site' that gives default |
172 | default values for variables like `CC', `cache_file', and `prefix'. | 176 | values for variables like `CC', `cache_file', and `prefix'. |
173 | `configure' looks for `PREFIX/share/config.site' if it exists, then | 177 | `configure' looks for `PREFIX/share/config.site' if it exists, then |
174 | `PREFIX/etc/config.site' if it exists. Or, you can set the | 178 | `PREFIX/etc/config.site' if it exists. Or, you can set the |
175 | `CONFIG_SITE' environment variable to the location of the site script. | 179 | `CONFIG_SITE' environment variable to the location of the site script. |
@@ -178,7 +182,7 @@ A warning: not all `configure' scripts look for a site script. | |||
178 | Defining Variables | 182 | Defining Variables |
179 | ================== | 183 | ================== |
180 | 184 | ||
181 | Variables not defined in a site shell script can be set in the | 185 | Variables not defined in a site shell script can be set in the |
182 | environment passed to `configure'. However, some packages may run | 186 | environment passed to `configure'. However, some packages may run |
183 | configure again during the build, and the customized values of these | 187 | configure again during the build, and the customized values of these |
184 | variables may be lost. In order to avoid this problem, you should set | 188 | variables may be lost. In order to avoid this problem, you should set |
@@ -186,14 +190,18 @@ them in the `configure' command line, using `VAR=value'. For example: | |||
186 | 190 | ||
187 | ./configure CC=/usr/local2/bin/gcc | 191 | ./configure CC=/usr/local2/bin/gcc |
188 | 192 | ||
189 | will cause the specified gcc to be used as the C compiler (unless it is | 193 | causes the specified `gcc' to be used as the C compiler (unless it is |
190 | overridden in the site shell script). | 194 | overridden in the site shell script). |
191 | 195 | ||
196 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to | ||
197 | an Autoconf bug. Until the bug is fixed you can use this workaround: | ||
198 | |||
199 | CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash | ||
200 | |||
192 | `configure' Invocation | 201 | `configure' Invocation |
193 | ====================== | 202 | ====================== |
194 | 203 | ||
195 | `configure' recognizes the following options to control how it | 204 | `configure' recognizes the following options to control how it operates. |
196 | operates. | ||
197 | 205 | ||
198 | `--help' | 206 | `--help' |
199 | `-h' | 207 | `-h' |
@@ -43,7 +43,7 @@ EXIT_FAILURE=1 | |||
43 | 43 | ||
44 | PROGRAM=ltmain.sh | 44 | PROGRAM=ltmain.sh |
45 | PACKAGE=libtool | 45 | PACKAGE=libtool |
46 | VERSION="1.5.26 Debian 1.5.26-1" | 46 | VERSION="1.5.26 Debian 1.5.26-2" |
47 | TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)" | 47 | TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)" |
48 | 48 | ||
49 | # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). | 49 | # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). |
diff --git a/mkinstalldirs b/mkinstalldirs index 6fbe5e11..ef7e16fd 100644 --- a/mkinstalldirs +++ b/mkinstalldirs | |||
@@ -1,7 +1,7 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # mkinstalldirs --- make directory hierarchy | 2 | # mkinstalldirs --- make directory hierarchy |
3 | 3 | ||
4 | scriptversion=2004-02-15.20 | 4 | scriptversion=2006-05-11.19 |
5 | 5 | ||
6 | # Original author: Noah Friedman <friedman@prep.ai.mit.edu> | 6 | # Original author: Noah Friedman <friedman@prep.ai.mit.edu> |
7 | # Created: 1993-05-16 | 7 | # Created: 1993-05-16 |
@@ -11,8 +11,11 @@ scriptversion=2004-02-15.20 | |||
11 | # bugs to <bug-automake@gnu.org> or send patches to | 11 | # bugs to <bug-automake@gnu.org> or send patches to |
12 | # <automake-patches@gnu.org>. | 12 | # <automake-patches@gnu.org>. |
13 | 13 | ||
14 | nl=' | ||
15 | ' | ||
16 | IFS=" "" $nl" | ||
14 | errstatus=0 | 17 | errstatus=0 |
15 | dirmode="" | 18 | dirmode= |
16 | 19 | ||
17 | usage="\ | 20 | usage="\ |
18 | Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... | 21 | Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... |
@@ -27,7 +30,7 @@ while test $# -gt 0 ; do | |||
27 | case $1 in | 30 | case $1 in |
28 | -h | --help | --h*) # -h for help | 31 | -h | --help | --h*) # -h for help |
29 | echo "$usage" | 32 | echo "$usage" |
30 | exit 0 | 33 | exit $? |
31 | ;; | 34 | ;; |
32 | -m) # -m PERM arg | 35 | -m) # -m PERM arg |
33 | shift | 36 | shift |
@@ -37,7 +40,7 @@ while test $# -gt 0 ; do | |||
37 | ;; | 40 | ;; |
38 | --version) | 41 | --version) |
39 | echo "$0 $scriptversion" | 42 | echo "$0 $scriptversion" |
40 | exit 0 | 43 | exit $? |
41 | ;; | 44 | ;; |
42 | --) # stop option processing | 45 | --) # stop option processing |
43 | shift | 46 | shift |
@@ -103,13 +106,21 @@ esac | |||
103 | 106 | ||
104 | for file | 107 | for file |
105 | do | 108 | do |
106 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` | 109 | case $file in |
110 | /*) pathcomp=/ ;; | ||
111 | *) pathcomp= ;; | ||
112 | esac | ||
113 | oIFS=$IFS | ||
114 | IFS=/ | ||
115 | set fnord $file | ||
107 | shift | 116 | shift |
117 | IFS=$oIFS | ||
108 | 118 | ||
109 | pathcomp= | ||
110 | for d | 119 | for d |
111 | do | 120 | do |
112 | pathcomp="$pathcomp$d" | 121 | test "x$d" = x && continue |
122 | |||
123 | pathcomp=$pathcomp$d | ||
113 | case $pathcomp in | 124 | case $pathcomp in |
114 | -*) pathcomp=./$pathcomp ;; | 125 | -*) pathcomp=./$pathcomp ;; |
115 | esac | 126 | esac |
@@ -124,7 +135,7 @@ do | |||
124 | else | 135 | else |
125 | if test ! -z "$dirmode"; then | 136 | if test ! -z "$dirmode"; then |
126 | echo "chmod $dirmode $pathcomp" | 137 | echo "chmod $dirmode $pathcomp" |
127 | lasterr="" | 138 | lasterr= |
128 | chmod "$dirmode" "$pathcomp" || lasterr=$? | 139 | chmod "$dirmode" "$pathcomp" || lasterr=$? |
129 | 140 | ||
130 | if test ! -z "$lasterr"; then | 141 | if test ! -z "$lasterr"; then |
@@ -134,7 +145,7 @@ do | |||
134 | fi | 145 | fi |
135 | fi | 146 | fi |
136 | 147 | ||
137 | pathcomp="$pathcomp/" | 148 | pathcomp=$pathcomp/ |
138 | done | 149 | done |
139 | done | 150 | done |
140 | 151 | ||
diff --git a/src/plugins/fs/directory.c b/src/plugins/fs/directory.c index a0f659fc..25a6e885 100644 --- a/src/plugins/fs/directory.c +++ b/src/plugins/fs/directory.c | |||
@@ -87,7 +87,6 @@ on_open_menu_activate_fs (GtkWidget * dummy1, GtkWidget * dummy2) | |||
87 | int fd; | 87 | int fd; |
88 | SearchList *list; | 88 | SearchList *list; |
89 | struct GNUNET_ECRS_URI *uri; | 89 | struct GNUNET_ECRS_URI *uri; |
90 | const char *kws[2]; | ||
91 | GtkNotebook *notebook; | 90 | GtkNotebook *notebook; |
92 | 91 | ||
93 | dn = selectFile (); | 92 | dn = selectFile (); |
@@ -119,9 +118,7 @@ on_open_menu_activate_fs (GtkWidget * dummy1, GtkWidget * dummy2) | |||
119 | GNUNET_free (dn); | 118 | GNUNET_free (dn); |
120 | return; | 119 | return; |
121 | } | 120 | } |
122 | kws[0] = dn; | 121 | uri = GNUNET_ECRS_keyword_string_to_uri (NULL, dn); |
123 | kws[1] = NULL; | ||
124 | uri = GNUNET_ECRS_keyword_strings_to_uri (kws); | ||
125 | md = NULL; | 122 | md = NULL; |
126 | list = fs_search_started (NULL, uri, 0, 0, NULL, GNUNET_FSUI_COMPLETED); | 123 | list = fs_search_started (NULL, uri, 0, 0, NULL, GNUNET_FSUI_COMPLETED); |
127 | GNUNET_ECRS_uri_destroy (uri); | 124 | GNUNET_ECRS_uri_destroy (uri); |
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c index b19a65d4..1b54d4a3 100644 --- a/src/plugins/fs/download.c +++ b/src/plugins/fs/download.c | |||
@@ -849,8 +849,7 @@ on_statusDownloadURIEntry_editing_done_fs (GtkWidget * entry, | |||
849 | 849 | ||
850 | struct FCBC | 850 | struct FCBC |
851 | { | 851 | { |
852 | int (*method) (struct GNUNET_FSUI_Context * ctx, | 852 | int (*method) (struct GNUNET_FSUI_DownloadList * list); |
853 | struct GNUNET_FSUI_DownloadList * list); | ||
854 | struct GNUNET_FSUI_DownloadList *argument; | 853 | struct GNUNET_FSUI_DownloadList *argument; |
855 | }; | 854 | }; |
856 | 855 | ||
@@ -858,7 +857,7 @@ static void * | |||
858 | fsui_callback (void *cls) | 857 | fsui_callback (void *cls) |
859 | { | 858 | { |
860 | struct FCBC *fcbc = cls; | 859 | struct FCBC *fcbc = cls; |
861 | fcbc->method (ctx, fcbc->argument); | 860 | fcbc->method (fcbc->argument); |
862 | return NULL; | 861 | return NULL; |
863 | } | 862 | } |
864 | 863 | ||
diff --git a/src/plugins/fs/meta.c b/src/plugins/fs/meta.c index 3a865602..feb4a886 100644 --- a/src/plugins/fs/meta.c +++ b/src/plugins/fs/meta.c | |||
@@ -125,7 +125,7 @@ createMetaDataListTreeView (GladeXML * xml, | |||
125 | } | 125 | } |
126 | 126 | ||
127 | static int | 127 | static int |
128 | publishKeyword (const char *data, void *cls) | 128 | publishKeyword (const char *data, int is_mandatory, void *cls) |
129 | { | 129 | { |
130 | GtkListStore *store = cls; | 130 | GtkListStore *store = cls; |
131 | GtkTreeIter iter; | 131 | GtkTreeIter iter; |
@@ -398,9 +398,7 @@ getKeywordURIFromList (GladeXML * xml, const char *name) | |||
398 | } | 398 | } |
399 | while (gtk_tree_model_iter_next (keymodel, &iter)); | 399 | while (gtk_tree_model_iter_next (keymodel, &iter)); |
400 | } | 400 | } |
401 | keywords[kpos] = NULL; | 401 | keywordURI = GNUNET_ECRS_keyword_command_line_to_uri (NULL, kpos, (const char**) keywords); |
402 | |||
403 | keywordURI = GNUNET_ECRS_keyword_strings_to_uri ((const char **) keywords); | ||
404 | while (kpos > 0) | 402 | while (kpos > 0) |
405 | GNUNET_free (keywords[--kpos]); | 403 | GNUNET_free (keywords[--kpos]); |
406 | GNUNET_array_grow (keywords, ksize, 0); | 404 | GNUNET_array_grow (keywords, ksize, 0); |
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index c7f4de30..a1c79784 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -919,8 +919,7 @@ on_fssearchbutton_clicked_fs (gpointer dummy2, GtkWidget * searchButton) | |||
919 | 919 | ||
920 | struct FCBC | 920 | struct FCBC |
921 | { | 921 | { |
922 | int (*method) (struct GNUNET_FSUI_Context * ctx, | 922 | int (*method) (struct GNUNET_FSUI_SearchList * list); |
923 | struct GNUNET_FSUI_SearchList * list); | ||
924 | struct GNUNET_FSUI_SearchList *argument; | 923 | struct GNUNET_FSUI_SearchList *argument; |
925 | }; | 924 | }; |
926 | 925 | ||
@@ -928,7 +927,7 @@ static void * | |||
928 | fsui_callback (void *cls) | 927 | fsui_callback (void *cls) |
929 | { | 928 | { |
930 | struct FCBC *fcbc = cls; | 929 | struct FCBC *fcbc = cls; |
931 | fcbc->method (ctx, fcbc->argument); | 930 | fcbc->method (fcbc->argument); |
932 | return NULL; | 931 | return NULL; |
933 | } | 932 | } |
934 | 933 | ||
diff --git a/src/plugins/fs/upload.c b/src/plugins/fs/upload.c index 0d83d164..ef2644be 100644 --- a/src/plugins/fs/upload.c +++ b/src/plugins/fs/upload.c | |||
@@ -556,8 +556,7 @@ on_mainFileSharingInsertBrowseButton_clicked_fs (GtkWidget * browseButton, | |||
556 | 556 | ||
557 | struct FCBC | 557 | struct FCBC |
558 | { | 558 | { |
559 | int (*method) (struct GNUNET_FSUI_Context * ctx, | 559 | int (*method) (struct GNUNET_FSUI_UploadList * list); |
560 | struct GNUNET_FSUI_UploadList * list); | ||
561 | struct GNUNET_FSUI_UploadList *argument; | 560 | struct GNUNET_FSUI_UploadList *argument; |
562 | }; | 561 | }; |
563 | 562 | ||
@@ -565,7 +564,7 @@ static void * | |||
565 | fsui_callback (void *cls) | 564 | fsui_callback (void *cls) |
566 | { | 565 | { |
567 | struct FCBC *fcbc = cls; | 566 | struct FCBC *fcbc = cls; |
568 | fcbc->method (ctx, fcbc->argument); | 567 | fcbc->method (fcbc->argument); |
569 | return NULL; | 568 | return NULL; |
570 | } | 569 | } |
571 | 570 | ||