diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-21 10:56:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-21 10:56:28 +0000 |
commit | d4afc6e37a14fe3257263c377a243c1a22ed9ee5 (patch) | |
tree | ccfce6d4f92808372d3e7ebfe9f5372e9f21f50c /src/ats/gnunet-service-ats_scheduling.h | |
parent | 60d02b5b0899f454cb65408bd2ed4c453fa75a3d (diff) | |
download | gnunet-d4afc6e37a14fe3257263c377a243c1a22ed9ee5.tar.gz gnunet-d4afc6e37a14fe3257263c377a243c1a22ed9ee5.zip |
migrating more services to new service API
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.h')
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.h | 44 |
1 files changed, 8 insertions, 36 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.h b/src/ats/gnunet-service-ats_scheduling.h index 99dc6084b..26cb2c73a 100644 --- a/src/ats/gnunet-service-ats_scheduling.h +++ b/src/ats/gnunet-service-ats_scheduling.h | |||
@@ -37,7 +37,7 @@ | |||
37 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 37 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
38 | */ | 38 | */ |
39 | int | 39 | int |
40 | GAS_scheduling_add_client (struct GNUNET_SERVER_Client *client); | 40 | GAS_scheduling_add_client (struct GNUNET_SERVICE_Client *client); |
41 | 41 | ||
42 | 42 | ||
43 | /** | 43 | /** |
@@ -47,7 +47,7 @@ GAS_scheduling_add_client (struct GNUNET_SERVER_Client *client); | |||
47 | * @param client handle of the (now dead) client | 47 | * @param client handle of the (now dead) client |
48 | */ | 48 | */ |
49 | void | 49 | void |
50 | GAS_scheduling_remove_client (struct GNUNET_SERVER_Client *client); | 50 | GAS_scheduling_remove_client (struct GNUNET_SERVICE_Client *client); |
51 | 51 | ||
52 | 52 | ||
53 | /** | 53 | /** |
@@ -69,57 +69,29 @@ GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity *pe | |||
69 | /** | 69 | /** |
70 | * Handle 'address add' messages from clients. | 70 | * Handle 'address add' messages from clients. |
71 | * | 71 | * |
72 | * @param cls unused, NULL | ||
73 | * @param client client that sent the request | 72 | * @param client client that sent the request |
74 | * @param message the request message | 73 | * @param m the request message |
75 | */ | 74 | */ |
76 | void | 75 | void |
77 | GAS_handle_address_add (void *cls, | 76 | GAS_handle_address_add (const struct AddressAddMessage *m); |
78 | struct GNUNET_SERVER_Client *client, | ||
79 | const struct GNUNET_MessageHeader *message); | ||
80 | 77 | ||
81 | 78 | ||
82 | /** | 79 | /** |
83 | * Handle 'address update' messages from clients. | 80 | * Handle 'address update' messages from clients. |
84 | * | 81 | * |
85 | * @param cls unused, NULL | 82 | * @param m the request message |
86 | * @param client client that sent the request | ||
87 | * @param message the request message | ||
88 | */ | 83 | */ |
89 | void | 84 | void |
90 | GAS_handle_address_update (void *cls, | 85 | GAS_handle_address_update (const struct AddressUpdateMessage *m); |
91 | struct GNUNET_SERVER_Client *client, | ||
92 | const struct GNUNET_MessageHeader *message); | ||
93 | 86 | ||
94 | 87 | ||
95 | /** | 88 | /** |
96 | * Handle 'address destroyed' messages from clients. | 89 | * Handle 'address destroyed' messages from clients. |
97 | * | 90 | * |
98 | * @param cls unused, NULL | 91 | * @param m the request message |
99 | * @param client client that sent the request | ||
100 | * @param message the request message | ||
101 | */ | ||
102 | void | ||
103 | GAS_handle_address_destroyed (void *cls, | ||
104 | struct GNUNET_SERVER_Client *client, | ||
105 | const struct GNUNET_MessageHeader *message); | ||
106 | |||
107 | |||
108 | /** | ||
109 | * Initialize scheduling subsystem. | ||
110 | * | ||
111 | * @param server handle to our server | ||
112 | * @param ah the address handle to use | ||
113 | */ | ||
114 | void | ||
115 | GAS_scheduling_init (struct GNUNET_SERVER_Handle *server); | ||
116 | |||
117 | |||
118 | /** | ||
119 | * Shutdown scheduling subsystem. | ||
120 | */ | 92 | */ |
121 | void | 93 | void |
122 | GAS_scheduling_done (void); | 94 | GAS_handle_address_destroyed (const struct AddressDestroyedMessage *m); |
123 | 95 | ||
124 | 96 | ||
125 | #endif | 97 | #endif |