diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-05-14 16:50:28 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-05-14 16:50:28 +0000 |
commit | 9aaa554470dbff968c6cab7a2850a15318c1f15b (patch) | |
tree | 2375634ba53d0dd0bd7bbc674bb3b1eb28f42742 /src/cadet/gnunet-service-cadet_hello.c | |
parent | a8a95437e8782ef509fb64e1975a8c1ddd08eee0 (diff) | |
download | gnunet-9aaa554470dbff968c6cab7a2850a15318c1f15b.tar.gz gnunet-9aaa554470dbff968c6cab7a2850a15318c1f15b.zip |
- change GM (Gnunet Mesh) function prefixes for GC (Gnunet Cadet)
Diffstat (limited to 'src/cadet/gnunet-service-cadet_hello.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_hello.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cadet/gnunet-service-cadet_hello.c b/src/cadet/gnunet-service-cadet_hello.c index 7eda3f507..edb1a96a2 100644 --- a/src/cadet/gnunet-service-cadet_hello.c +++ b/src/cadet/gnunet-service-cadet_hello.c | |||
@@ -108,12 +108,12 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id, | |||
108 | LOG (GNUNET_ERROR_TYPE_DEBUG, " hello for %s (%d bytes), expires on %s\n", | 108 | LOG (GNUNET_ERROR_TYPE_DEBUG, " hello for %s (%d bytes), expires on %s\n", |
109 | GNUNET_i2s (id), GNUNET_HELLO_size (hello), | 109 | GNUNET_i2s (id), GNUNET_HELLO_size (hello), |
110 | GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_get_last_expiration(hello))); | 110 | GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_get_last_expiration(hello))); |
111 | peer = GMP_get (id); | 111 | peer = GCP_get (id); |
112 | GMP_set_hello (peer, hello); | 112 | GCP_set_hello (peer, hello); |
113 | 113 | ||
114 | if (GMP_get_short_id (peer) == myid) | 114 | if (GCP_get_short_id (peer) == myid) |
115 | { | 115 | { |
116 | mine = GMP_get_hello (peer); | 116 | mine = GCP_get_hello (peer); |
117 | LOG (GNUNET_ERROR_TYPE_DEBUG, " updated mine to %p\n", mine); | 117 | LOG (GNUNET_ERROR_TYPE_DEBUG, " updated mine to %p\n", mine); |
118 | } | 118 | } |
119 | } | 119 | } |
@@ -129,7 +129,7 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id, | |||
129 | * @param c Configuration. | 129 | * @param c Configuration. |
130 | */ | 130 | */ |
131 | void | 131 | void |
132 | GMH_init (const struct GNUNET_CONFIGURATION_Handle *c) | 132 | GCH_init (const struct GNUNET_CONFIGURATION_Handle *c) |
133 | { | 133 | { |
134 | LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); | 134 | LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); |
135 | GNUNET_assert (NULL == nc); | 135 | GNUNET_assert (NULL == nc); |
@@ -142,7 +142,7 @@ GMH_init (const struct GNUNET_CONFIGURATION_Handle *c) | |||
142 | * Shut down the hello subsystem. | 142 | * Shut down the hello subsystem. |
143 | */ | 143 | */ |
144 | void | 144 | void |
145 | GMH_shutdown () | 145 | GCH_shutdown () |
146 | { | 146 | { |
147 | if (NULL != nc) | 147 | if (NULL != nc) |
148 | { | 148 | { |
@@ -163,7 +163,7 @@ GMH_shutdown () | |||
163 | * @return Own hello message. | 163 | * @return Own hello message. |
164 | */ | 164 | */ |
165 | const struct GNUNET_HELLO_Message * | 165 | const struct GNUNET_HELLO_Message * |
166 | GMH_get_mine (void) | 166 | GCH_get_mine (void) |
167 | { | 167 | { |
168 | LOG (GNUNET_ERROR_TYPE_DEBUG, " mine is %p\n", mine); | 168 | LOG (GNUNET_ERROR_TYPE_DEBUG, " mine is %p\n", mine); |
169 | return mine; | 169 | return mine; |
@@ -178,9 +178,9 @@ GMH_get_mine (void) | |||
178 | * @return Hello message, if any (NULL possible). | 178 | * @return Hello message, if any (NULL possible). |
179 | */ | 179 | */ |
180 | const struct GNUNET_HELLO_Message * | 180 | const struct GNUNET_HELLO_Message * |
181 | GMH_get (const struct GNUNET_PeerIdentity *id) | 181 | GCH_get (const struct GNUNET_PeerIdentity *id) |
182 | { | 182 | { |
183 | return GMP_get_hello (GMP_get (id)); | 183 | return GCP_get_hello (GCP_get (id)); |
184 | } | 184 | } |
185 | 185 | ||
186 | 186 | ||
@@ -190,7 +190,7 @@ GMH_get (const struct GNUNET_PeerIdentity *id) | |||
190 | * @param h Hello message. | 190 | * @param h Hello message. |
191 | */ | 191 | */ |
192 | char * | 192 | char * |
193 | GMH_2s (const struct GNUNET_HELLO_Message *h) | 193 | GCH_2s (const struct GNUNET_HELLO_Message *h) |
194 | { | 194 | { |
195 | return "hello (TODO)"; | 195 | return "hello (TODO)"; |
196 | } | 196 | } |