aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/Makefile.am3
-rw-r--r--src/fs/gnunet-fs-gtk.c8
-rw-r--r--src/fs/gnunet-fs-gtk_main-window-search.c8
-rw-r--r--src/fs/gnunet-fs-gtk_publish-dialog.c4
-rw-r--r--src/identity/gnunet-identity-gtk.c6
-rw-r--r--src/lib/animations.c4
-rw-r--r--src/lib/eventloop.c9
-rw-r--r--src/lib/glade.c4
-rw-r--r--src/lib/os_installation.c2
-rw-r--r--src/main/gnunet-gtk.c12
-rw-r--r--src/namestore/Makefile.am4
-rw-r--r--src/namestore/gnunet-namestore-gtk.c8
-rw-r--r--src/peerinfo/gnunet-peerinfo-gtk-flags.c2
-rw-r--r--src/peerinfo/gnunet-peerinfo-gtk.c2
-rw-r--r--src/setup/gnunet-setup-transport.c4
-rw-r--r--src/setup/gnunet-setup.c11
-rw-r--r--src/setup/gnunet-setup.h4
17 files changed, 29 insertions, 66 deletions
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am
index f3e49a74..b011d7ca 100644
--- a/src/fs/Makefile.am
+++ b/src/fs/Makefile.am
@@ -45,11 +45,10 @@ gnunet_fs_gtk_LDADD = \
45gnunet_fs_gtk_LDFLAGS = \ 45gnunet_fs_gtk_LDFLAGS = \
46 -export-dynamic 46 -export-dynamic
47 47
48pkgcfgdir= $(prefix)/share/gnunet-gtk/config.d/ 48pkgcfgdir= $(prefix)/share/gnunet/config.d/
49 49
50pkgcfg_DATA = \ 50pkgcfg_DATA = \
51 gnunet-fs-gtk.conf 51 gnunet-fs-gtk.conf
52 52
53EXTRA_DIST = metatypes.c \ 53EXTRA_DIST = metatypes.c \
54 $(pkgcfg_DATA) 54 $(pkgcfg_DATA)
55
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index 054fc7bc..58db7609 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -233,11 +233,9 @@ GNUNET_GTK_main_window_configure_event_cb (GtkWidget *main_window,
233 * Task run on shutdown. 233 * Task run on shutdown.
234 * 234 *
235 * @param cls NULL 235 * @param cls NULL
236 * @param tc scheduler context, unused
237 */ 236 */
238static void 237static void
239shutdown_task (void *cls, 238shutdown_task (void *cls)
240 const struct GNUNET_SCHEDULER_TaskContext *tc)
241{ 239{
242 struct SearchLookup *sl; 240 struct SearchLookup *sl;
243 struct PseuLookupContext *lctx; 241 struct PseuLookupContext *lctx;
@@ -678,11 +676,9 @@ handle_sks_zone_identity (void *cls,
678 * is initialized. Initializes up GTK and Glade. 676 * is initialized. Initializes up GTK and Glade.
679 * 677 *
680 * @param cls handle to the main loop (`struct GNUNET_GTK_MainLoop`) 678 * @param cls handle to the main loop (`struct GNUNET_GTK_MainLoop`)
681 * @param tc scheduler context, unused
682 */ 679 */
683static void 680static void
684run (void *cls, 681run (void *cls)
685 const struct GNUNET_SCHEDULER_TaskContext *tc)
686{ 682{
687 unsigned long long dl_parallel; 683 unsigned long long dl_parallel;
688 unsigned long long req_parallel; 684 unsigned long long req_parallel;
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c b/src/fs/gnunet-fs-gtk_main-window-search.c
index 37339c30..3a2273d5 100644
--- a/src/fs/gnunet-fs-gtk_main-window-search.c
+++ b/src/fs/gnunet-fs-gtk_main-window-search.c
@@ -84,11 +84,9 @@ abort_search_lookup (struct SearchLookup *sl)
84 * the GNS namespace times out. 84 * the GNS namespace times out.
85 * 85 *
86 * @param cls the 'struct SearchLookup' 86 * @param cls the 'struct SearchLookup'
87 * @param tc scheduler context
88 */ 87 */
89static void 88static void
90timeout_search_lookup (void *cls, 89timeout_search_lookup (void *cls)
91 const struct GNUNET_SCHEDULER_TaskContext *tc)
92{ 90{
93 struct SearchLookup *sl = cls; 91 struct SearchLookup *sl = cls;
94 92
@@ -302,11 +300,9 @@ main_window_search_entry_key_press_event_cb (GtkWidget * widget,
302 * Asynchronously clean up PseuLookupContext. 300 * Asynchronously clean up PseuLookupContext.
303 * 301 *
304 * @param cls the `struct PseuLookupContext` to clean up. 302 * @param cls the `struct PseuLookupContext` to clean up.
305 * @param tc scheduler context
306 */ 303 */
307static void 304static void
308end_pseu_lookup (void *cls, 305end_pseu_lookup (void *cls)
309 const struct GNUNET_SCHEDULER_TaskContext *tc)
310{ 306{
311 struct PseuLookupContext *lctx = cls; 307 struct PseuLookupContext *lctx = cls;
312 308
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c
index a171f32c..450083d7 100644
--- a/src/fs/gnunet-fs-gtk_publish-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-dialog.c
@@ -1457,11 +1457,9 @@ add_share_items_to_treestore (struct AddDirClientContext *adcc,
1457 * in a separate task). 1457 * in a separate task).
1458 * 1458 *
1459 * @param cls progress dialog context of our window 1459 * @param cls progress dialog context of our window
1460 * @param tc scheduler context, unused
1461 */ 1460 */
1462static void 1461static void
1463stop_scanner_task (void *cls, 1462stop_scanner_task (void *cls)
1464 const struct GNUNET_SCHEDULER_TaskContext *tc)
1465{ 1463{
1466 struct AddDirClientContext *adcc = cls; 1464 struct AddDirClientContext *adcc = cls;
1467 1465
diff --git a/src/identity/gnunet-identity-gtk.c b/src/identity/gnunet-identity-gtk.c
index ca5668f0..3edb7bb4 100644
--- a/src/identity/gnunet-identity-gtk.c
+++ b/src/identity/gnunet-identity-gtk.c
@@ -379,10 +379,9 @@ GNUNET_GTK_namespace_organizer_namespaces_treeview_column_name_text_edited_cb
379 * Task run on shutdown. 379 * Task run on shutdown.
380 * 380 *
381 * @param cls unused 381 * @param cls unused
382 * @param tc scheduler context, unused
383 */ 382 */
384static void 383static void
385shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 384shutdown_task (void *cls)
386{ 385{
387 struct OperationContext *oc; 386 struct OperationContext *oc;
388 387
@@ -496,10 +495,9 @@ add_ego (void *cls,
496 * is initialized. Initializes up GTK and Glade. 495 * is initialized. Initializes up GTK and Glade.
497 * 496 *
498 * @param cls NULL 497 * @param cls NULL
499 * @param tc schedule context
500 */ 498 */
501static void 499static void
502run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 500run (void *cls)
503{ 501{
504 GtkWidget *main_window; 502 GtkWidget *main_window;
505 GtkTreeIter iter; 503 GtkTreeIter iter;
diff --git a/src/lib/animations.c b/src/lib/animations.c
index 0f217d1f..16fa883d 100644
--- a/src/lib/animations.c
+++ b/src/lib/animations.c
@@ -261,11 +261,9 @@ redraw_tree_view (struct GNUNET_GTK_AnimationTreeViewHandle *atv)
261 * Task run periodically to advance all of our animations. 261 * Task run periodically to advance all of our animations.
262 * 262 *
263 * @param cls closure, unused 263 * @param cls closure, unused
264 * @param tc scheduler context, unused
265 */ 264 */
266static void 265static void
267ticker (void *cls, 266ticker (void *cls)
268 const struct GNUNET_SCHEDULER_TaskContext *tc)
269{ 267{
270 struct GNUNET_GTK_AnimationContext *pos; 268 struct GNUNET_GTK_AnimationContext *pos;
271 struct GNUNET_GTK_AnimationTreeViewHandle *atv; 269 struct GNUNET_GTK_AnimationTreeViewHandle *atv;
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c
index e42d422d..50b294f8 100644
--- a/src/lib/eventloop.c
+++ b/src/lib/eventloop.c
@@ -323,10 +323,9 @@ GNUNET_GTK_main_loop_get_args (struct GNUNET_GTK_MainLoop * ml,
323 * Task to run Gtk events (within a GNUnet scheduler task). 323 * Task to run Gtk events (within a GNUnet scheduler task).
324 * 324 *
325 * @param cls the main loop handle 325 * @param cls the main loop handle
326 * @param tc scheduler context
327 */ 326 */
328static void 327static void
329dispatch_gtk_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 328dispatch_gtk_task (void *cls)
330{ 329{
331 struct GNUNET_GTK_MainLoop *ml = cls; 330 struct GNUNET_GTK_MainLoop *ml = cls;
332 331
@@ -355,7 +354,7 @@ resize_cached_poll_array (struct GNUNET_GTK_MainLoop *ml, guint new_size)
355 * Dummy task to keep our scheduler running. 354 * Dummy task to keep our scheduler running.
356 */ 355 */
357static void 356static void
358keepalive_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 357keepalive_task (void *cls)
359{ 358{
360 struct GNUNET_GTK_MainLoop *ml = cls; 359 struct GNUNET_GTK_MainLoop *ml = cls;
361 360
@@ -854,8 +853,8 @@ run_main_loop (void *cls, char *const *args, const char *cfgfile,
854 GNUNET_asprintf (&baseconfig, "%s%s", ipath, "config.d"); 853 GNUNET_asprintf (&baseconfig, "%s%s", ipath, "config.d");
855 (void) GNUNET_CONFIGURATION_load_from (gcfg, baseconfig); 854 (void) GNUNET_CONFIGURATION_load_from (gcfg, baseconfig);
856 GNUNET_free (baseconfig); 855 GNUNET_free (baseconfig);
857 856 /* FIXME: this was supposed to search the GTK-IPK, so the logic here is badly broken now */
858 if (NULL == (ipath2 = GNUNET_GTK_installation_get_path (GNUNET_OS_IPK_DATADIR))) 857 if (NULL == (ipath2 = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR)))
859 { 858 {
860 GNUNET_break (0); 859 GNUNET_break (0);
861 return; 860 return;
diff --git a/src/lib/glade.c b/src/lib/glade.c
index 5b508a85..99a9910e 100644
--- a/src/lib/glade.c
+++ b/src/lib/glade.c
@@ -35,7 +35,7 @@ GNUNET_GTK_set_icon_search_path ()
35{ 35{
36 char *buf; 36 char *buf;
37 37
38 buf = GNUNET_GTK_installation_get_path (GNUNET_OS_IPK_ICONDIR); 38 buf = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_ICONDIR);
39 gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), buf); 39 gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), buf);
40 GNUNET_free (buf); 40 GNUNET_free (buf);
41} 41}
@@ -53,7 +53,7 @@ GNUNET_GTK_get_data_dir ()
53 static char *dd; 53 static char *dd;
54 54
55 if (dd == NULL) 55 if (dd == NULL)
56 dd = GNUNET_GTK_installation_get_path (GNUNET_OS_IPK_DATADIR); 56 dd = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR);
57 return dd; 57 return dd;
58} 58}
59 59
diff --git a/src/lib/os_installation.c b/src/lib/os_installation.c
index 274ba0ad..9b68b097 100644
--- a/src/lib/os_installation.c
+++ b/src/lib/os_installation.c
@@ -31,7 +31,7 @@
31 */ 31 */
32static const struct GNUNET_OS_ProjectData gtk_pd = { 32static const struct GNUNET_OS_ProjectData gtk_pd = {
33 .libname = "libgnunetgtk", 33 .libname = "libgnunetgtk",
34 .project_dirname = "gnunet-gtk", 34 .project_dirname = "gnunet",
35 .binary_name = "gnunet-fs-gtk", 35 .binary_name = "gnunet-fs-gtk",
36 .env_varname = "GNUNET_GTK_PREFIX", 36 .env_varname = "GNUNET_GTK_PREFIX",
37 .env_varname_alt = "GNUNET_PREFIX", 37 .env_varname_alt = "GNUNET_PREFIX",
diff --git a/src/main/gnunet-gtk.c b/src/main/gnunet-gtk.c
index 01b27a62..8d01a718 100644
--- a/src/main/gnunet-gtk.c
+++ b/src/main/gnunet-gtk.c
@@ -127,11 +127,9 @@ get_object (const char *name)
127 * Actual main to tear down the system. 127 * Actual main to tear down the system.
128 * 128 *
129 * @param cls the main loop handle 129 * @param cls the main loop handle
130 * @param tc scheduler context
131 */ 130 */
132static void 131static void
133cleanup_task (void *cls, 132cleanup_task (void *cls)
134 const struct GNUNET_SCHEDULER_TaskContext *tc)
135{ 133{
136 struct Plug *p; 134 struct Plug *p;
137 135
@@ -213,11 +211,9 @@ start_process (struct Plug *p)
213 * Restart crashed plugin process. 211 * Restart crashed plugin process.
214 * 212 *
215 * @param cls the `struct Plug` of the plugin 213 * @param cls the `struct Plug` of the plugin
216 * @param tc scheduler context
217 */ 214 */
218static void 215static void
219restart_process (void *cls, 216restart_process (void *cls)
220 const struct GNUNET_SCHEDULER_TaskContext *tc)
221{ 217{
222 struct Plug *p = cls; 218 struct Plug *p = cls;
223 219
@@ -307,11 +303,9 @@ plug (const char *container,
307 * Actual main method that sets up the configuration window. 303 * Actual main method that sets up the configuration window.
308 * 304 *
309 * @param cls the main loop handle 305 * @param cls the main loop handle
310 * @param tc scheduler context
311 */ 306 */
312static void 307static void
313run (void *cls, 308run (void *cls)
314 const struct GNUNET_SCHEDULER_TaskContext *tc)
315{ 309{
316 GtkWidget *main_window; 310 GtkWidget *main_window;
317 311
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am
index d30cb2a6..e8320eb8 100644
--- a/src/namestore/Makefile.am
+++ b/src/namestore/Makefile.am
@@ -1,10 +1,8 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2SUBDIRS = . 2SUBDIRS = .
3 3
4# we use libgnunetutil to load plugins, and it
5# only looks in /gnunet, not /gnunet-gtk!
6plugindir = $(libdir)/gnunet 4plugindir = $(libdir)/gnunet
7pkgcfgdir= $(prefix)/share/gnunet-gtk/config.d/ 5pkgcfgdir= $(prefix)/share/gnunet/config.d/
8 6
9AM_CPPFLAGS = \ 7AM_CPPFLAGS = \
10 -I$(top_srcdir)/ \ 8 -I$(top_srcdir)/ \
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c
index 20da0446..7f686086 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -2591,11 +2591,9 @@ gnunet_namestore_gtk_zone_combobox_changed_cb (GtkComboBox *widget,
2591 * Actual main to tear down the system. 2591 * Actual main to tear down the system.
2592 * 2592 *
2593 * @param cls the main loop handle 2593 * @param cls the main loop handle
2594 * @param tc scheduler context
2595 */ 2594 */
2596static void 2595static void
2597cleanup_task (void *cls, 2596cleanup_task (void *cls)
2598 const struct GNUNET_SCHEDULER_TaskContext *tc)
2599{ 2597{
2600 struct OperationContext *oc; 2598 struct OperationContext *oc;
2601 struct MoveOperationContext *moc; 2599 struct MoveOperationContext *moc;
@@ -2775,11 +2773,9 @@ identity_cb (void *cls,
2775 * Actual main method that sets up the configuration window. 2773 * Actual main method that sets up the configuration window.
2776 * 2774 *
2777 * @param cls the main loop handle 2775 * @param cls the main loop handle
2778 * @param tc scheduler context
2779 */ 2776 */
2780static void 2777static void
2781run (void *cls, 2778run (void *cls)
2782 const struct GNUNET_SCHEDULER_TaskContext *tc)
2783{ 2779{
2784 gchar *label; 2780 gchar *label;
2785 GtkLabel *status_label; 2781 GtkLabel *status_label;
diff --git a/src/peerinfo/gnunet-peerinfo-gtk-flags.c b/src/peerinfo/gnunet-peerinfo-gtk-flags.c
index 818dc6d5..0a107894 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk-flags.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk-flags.c
@@ -99,7 +99,7 @@ GNUNET_PEERINFO_GTK_get_flag (const char *cc)
99 mcc = GNUNET_strdup (cc); 99 mcc = GNUNET_strdup (cc);
100 for (i = 0; i < strlen (mcc); i++) 100 for (i = 0; i < strlen (mcc); i++)
101 mcc[i] = tolower (mcc[i]); 101 mcc[i] = tolower (mcc[i]);
102 dir = GNUNET_GTK_installation_get_path (GNUNET_OS_IPK_DATADIR); 102 dir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR);
103 GNUNET_asprintf (&fn, "%sflags%s%s.png", dir, 103 GNUNET_asprintf (&fn, "%sflags%s%s.png", dir,
104 DIR_SEPARATOR_STR, mcc); 104 DIR_SEPARATOR_STR, mcc);
105 GNUNET_free (dir); 105 GNUNET_free (dir);
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c
index 0cca80f0..c98a1839 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -1465,7 +1465,7 @@ load_led (const char *color)
1465 char *dir; 1465 char *dir;
1466 char *fn; 1466 char *fn;
1467 1467
1468 dir = GNUNET_GTK_installation_get_path (GNUNET_OS_IPK_DATADIR); 1468 dir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR);
1469 GNUNET_asprintf (&fn, "%s%s.png", dir, 1469 GNUNET_asprintf (&fn, "%s%s.png", dir,
1470 color); 1470 color);
1471 GNUNET_free (dir); 1471 GNUNET_free (dir);
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index 788a2073..c242c50d 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -197,11 +197,9 @@ result_callback (void *cls,
197 * Main function for the connection reversal test. 197 * Main function for the connection reversal test.
198 * 198 *
199 * @param cls the 'int*' for the result 199 * @param cls the 'int*' for the result
200 * @param tc scheduler context
201 */ 200 */
202static void 201static void
203reversal_test (void *cls, 202reversal_test (void *cls)
204 const struct GNUNET_SCHEDULER_TaskContext *tc)
205{ 203{
206 struct GNUNET_SetupAutoContext *ac = cls; 204 struct GNUNET_SetupAutoContext *ac = cls;
207 205
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index 5a393630..d70f5bf9 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -364,10 +364,9 @@ write_configuration ()
364 * Method run on shutdown. 364 * Method run on shutdown.
365 * 365 *
366 * @param cls the main loop handle 366 * @param cls the main loop handle
367 * @param tc scheduler context
368 */ 367 */
369static void 368static void
370cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 369cleanup_task (void *cls)
371{ 370{
372 if (NULL == ml) 371 if (NULL == ml)
373 { 372 {
@@ -406,11 +405,9 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
406 * 405 *
407 * 406 *
408 * @param cls closure (unused) 407 * @param cls closure (unused)
409 * @param tc scheduler context (unused)
410 */ 408 */
411void 409void
412GNUNET_SETUP_restart_namestore (void *cls, 410GNUNET_SETUP_restart_namestore (void *cls)
413 const struct GNUNET_SCHEDULER_TaskContext *tc)
414{ 411{
415 if (GNUNET_OK != write_configuration ()) 412 if (GNUNET_OK != write_configuration ())
416 return; /* no point in re-starting namestore ... */ 413 return; /* no point in re-starting namestore ... */
@@ -584,11 +581,9 @@ autoconfig_finished_cb (void *cls)
584 * Actual main method that sets up the configuration window. 581 * Actual main method that sets up the configuration window.
585 * 582 *
586 * @param cls the main loop handle 583 * @param cls the main loop handle
587 * @param tc scheduler context
588 */ 584 */
589static void 585static void
590run (void *cls, 586run (void *cls)
591 const struct GNUNET_SCHEDULER_TaskContext *tc)
592{ 587{
593 GtkWidget *main_window; 588 GtkWidget *main_window;
594#ifndef MINGW 589#ifndef MINGW
diff --git a/src/setup/gnunet-setup.h b/src/setup/gnunet-setup.h
index 91a14958..40fd6e2e 100644
--- a/src/setup/gnunet-setup.h
+++ b/src/setup/gnunet-setup.h
@@ -65,11 +65,9 @@ GNUNET_SETUP_get_object (const char *name);
65 * 65 *
66 * 66 *
67 * @param cls closure (unused) 67 * @param cls closure (unused)
68 * @param tc scheduler context (unused)
69 */ 68 */
70void 69void
71GNUNET_SETUP_restart_namestore (void *cls, 70GNUNET_SETUP_restart_namestore (void *cls);
72 const struct GNUNET_SCHEDULER_TaskContext *tc);
73 71
74/** 72/**
75 * Our configuration. 73 * Our configuration.