aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-16 16:03:20 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-16 16:03:20 +0000
commit16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch)
treee09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/hostlist
parent4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff)
downloadgnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz
gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/hostlist-client.c7
-rw-r--r--src/hostlist/hostlist-client.h14
-rw-r--r--src/hostlist/hostlist-server.c4
-rw-r--r--src/hostlist/hostlist-server.h16
4 files changed, 23 insertions, 18 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index c049dceea..f6a47f4d9 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -476,7 +476,8 @@ download_get_url ()
476 * Method to save hostlist to a file during hostlist client shutdown 476 * Method to save hostlist to a file during hostlist client shutdown
477 * @param shutdown set if called because of shutdown, entries in linked list will be destroyed 477 * @param shutdown set if called because of shutdown, entries in linked list will be destroyed
478 */ 478 */
479static void save_hostlist_file (int shutdown); 479static void
480save_hostlist_file (int shutdown);
480 481
481 482
482/** 483/**
@@ -708,8 +709,8 @@ clean_up ()
708 * @param cls closure, unused 709 * @param cls closure, unused
709 * @param tc task context, unused 710 * @param tc task context, unused
710 */ 711 */
711static void task_download (void *cls, 712static void
712 const struct GNUNET_SCHEDULER_TaskContext *tc); 713task_download (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
713 714
714 715
715/** 716/**
diff --git a/src/hostlist/hostlist-client.h b/src/hostlist/hostlist-client.h
index c6561c820..3def865e4 100644
--- a/src/hostlist/hostlist-client.h
+++ b/src/hostlist/hostlist-client.h
@@ -89,17 +89,19 @@
89 * @param learn set if client is learning new hostlists 89 * @param learn set if client is learning new hostlists
90 * @return GNUNET_OK on success 90 * @return GNUNET_OK on success
91 */ 91 */
92int GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, 92int
93 struct GNUNET_STATISTICS_Handle *st, 93GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
94 GNUNET_CORE_ConnectEventHandler *ch, 94 struct GNUNET_STATISTICS_Handle *st,
95 GNUNET_CORE_DisconnectEventHandler *dh, 95 GNUNET_CORE_ConnectEventHandler *ch,
96 GNUNET_CORE_MessageCallback *msgh, int learn); 96 GNUNET_CORE_DisconnectEventHandler *dh,
97 GNUNET_CORE_MessageCallback *msgh, int learn);
97 98
98 99
99/** 100/**
100 * Stop downloading hostlists from hostlist servers as necessary. 101 * Stop downloading hostlists from hostlist servers as necessary.
101 */ 102 */
102void GNUNET_HOSTLIST_client_stop (void); 103void
104GNUNET_HOSTLIST_client_stop (void);
103 105
104 106
105#endif 107#endif
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index e48b6a4ac..bfe0b4b0e 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -448,8 +448,8 @@ process_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
448 * Function that queries MHD's select sets and 448 * Function that queries MHD's select sets and
449 * starts the task waiting for them. 449 * starts the task waiting for them.
450 */ 450 */
451static GNUNET_SCHEDULER_TaskIdentifier prepare_daemon (struct MHD_Daemon 451static GNUNET_SCHEDULER_TaskIdentifier
452 *daemon_handle); 452prepare_daemon (struct MHD_Daemon *daemon_handle);
453 453
454 454
455/** 455/**
diff --git a/src/hostlist/hostlist-server.h b/src/hostlist/hostlist-server.h
index b5960b39c..e0f8eb4a6 100644
--- a/src/hostlist/hostlist-server.h
+++ b/src/hostlist/hostlist-server.h
@@ -38,18 +38,20 @@
38 * 38 *
39 * @return GNUNET_OK on success 39 * @return GNUNET_OK on success
40 */ 40 */
41int GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c, 41int
42 struct GNUNET_STATISTICS_Handle *st, 42GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c,
43 struct GNUNET_CORE_Handle *core, 43 struct GNUNET_STATISTICS_Handle *st,
44 GNUNET_CORE_ConnectEventHandler *server_ch, 44 struct GNUNET_CORE_Handle *core,
45 GNUNET_CORE_DisconnectEventHandler *server_dh, 45 GNUNET_CORE_ConnectEventHandler *server_ch,
46 int advertise); 46 GNUNET_CORE_DisconnectEventHandler *server_dh,
47 int advertise);
47 48
48 49
49/** 50/**
50 * Stop server offering our hostlist. 51 * Stop server offering our hostlist.
51 */ 52 */
52void GNUNET_HOSTLIST_server_stop (void); 53void
54GNUNET_HOSTLIST_server_stop (void);
53 55
54 56
55#endif 57#endif