diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-02 16:55:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-02 16:55:10 +0000 |
commit | dc30009133e6c1021ac293469e69ff4043155b15 (patch) | |
tree | 4b772494a8188474b0a91015a0f9df0413461de3 | |
parent | bc26a5a2898974dadf5ce818797f700bc3bce567 (diff) | |
download | gnunet-dc30009133e6c1021ac293469e69ff4043155b15.tar.gz gnunet-dc30009133e6c1021ac293469e69ff4043155b15.zip |
-ensure external symbols have proper prefix for conversation service
-rw-r--r-- | src/conversation/conversation_api.c | 16 | ||||
-rw-r--r-- | src/conversation/gnunet-conversation.c | 12 | ||||
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 6 | ||||
-rw-r--r-- | src/include/gnunet_conversation_service.h | 26 |
4 files changed, 30 insertions, 30 deletions
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c index d32ec4fa6..c3fe8c960 100644 --- a/src/conversation/conversation_api.c +++ b/src/conversation/conversation_api.c | |||
@@ -257,7 +257,7 @@ receive_message_cb (void *cls, const struct GNUNET_MessageHeader *msg) | |||
257 | _("%s has accepted your call.\n"), | 257 | _("%s has accepted your call.\n"), |
258 | GNUNET_i2s_full (&(h->call->peer))); | 258 | GNUNET_i2s_full (&(h->call->peer))); |
259 | 259 | ||
260 | h->notification_handler (NULL, h, NotificationType_CALL_ACCEPTED, | 260 | h->notification_handler (NULL, h, GNUNET_CONVERSATION_NT_CALL_ACCEPTED, |
261 | &(h->call->peer)); | 261 | &(h->call->peer)); |
262 | h->call->type = CALLEE; | 262 | h->call->type = CALLEE; |
263 | 263 | ||
@@ -280,7 +280,7 @@ receive_message_cb (void *cls, const struct GNUNET_MessageHeader *msg) | |||
280 | _("%s has terminated the call.\n"), | 280 | _("%s has terminated the call.\n"), |
281 | GNUNET_i2s_full (&(h->call->peer))); | 281 | GNUNET_i2s_full (&(h->call->peer))); |
282 | 282 | ||
283 | h->notification_handler (NULL, h, NotificationType_CALL_TERMINATED, | 283 | h->notification_handler (NULL, h, GNUNET_CONVERSATION_NT_CALL_TERMINATED, |
284 | &(h->call->peer)); | 284 | &(h->call->peer)); |
285 | GNUNET_free (h->call); | 285 | GNUNET_free (h->call); |
286 | h->call = NULL; | 286 | h->call = NULL; |
@@ -317,20 +317,20 @@ receive_message_cb (void *cls, const struct GNUNET_MessageHeader *msg) | |||
317 | 317 | ||
318 | case GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SERVICE_BLOCKED: | 318 | case GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SERVICE_BLOCKED: |
319 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("The service is blocked.\n")); | 319 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("The service is blocked.\n")); |
320 | h->notification_handler (NULL, h, NotificationType_SERVICE_BLOCKED, | 320 | h->notification_handler (NULL, h, GNUNET_CONVERSATION_NT_SERVICE_BLOCKED, |
321 | NULL); | 321 | NULL); |
322 | break; | 322 | break; |
323 | 323 | ||
324 | case GNUNET_MESSAGE_TYPE_CONVERSATION_SC_PEER_NOT_CONNECTED: | 324 | case GNUNET_MESSAGE_TYPE_CONVERSATION_SC_PEER_NOT_CONNECTED: |
325 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 325 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
326 | _("The peer you are calling is not connected.\n")); | 326 | _("The peer you are calling is not connected.\n")); |
327 | h->notification_handler (NULL, h, NotificationType_NO_PEER, NULL); | 327 | h->notification_handler (NULL, h, GNUNET_CONVERSATION_NT_NO_PEER, NULL); |
328 | break; | 328 | break; |
329 | 329 | ||
330 | case GNUNET_MESSAGE_TYPE_CONVERSATION_SC_NO_ANSWER: | 330 | case GNUNET_MESSAGE_TYPE_CONVERSATION_SC_NO_ANSWER: |
331 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 331 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
332 | _("The peer you are calling does not answer.\n")); | 332 | _("The peer you are calling does not answer.\n")); |
333 | h->notification_handler (NULL, h, NotificationType_NO_ANSWER, | 333 | h->notification_handler (NULL, h, GNUNET_CONVERSATION_NT_NO_ANSWER, |
334 | &(h->call->peer)); | 334 | &(h->call->peer)); |
335 | break; | 335 | break; |
336 | 336 | ||
@@ -446,7 +446,7 @@ transmit_session_reject_message (void *cls, size_t size, void *buf) | |||
446 | msg = buf; | 446 | msg = buf; |
447 | msg->header.size = htons (msg_size); | 447 | msg->header.size = htons (msg_size); |
448 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_SESSION_REJECT); | 448 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_SESSION_REJECT); |
449 | msg->reason = htons (REJECT_REASON_NOT_WANTED); | 449 | msg->reason = htons (GNUNET_CONVERSATION_REJECT_REASON_NOT_WANTED); |
450 | 450 | ||
451 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 451 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
452 | _ | 452 | _ |
@@ -596,7 +596,7 @@ gns_call_cb (void *cls, uint32_t rd_count, | |||
596 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 596 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
597 | "Lookup failed\n"); | 597 | "Lookup failed\n"); |
598 | handle->notification_handler (NULL, handle, | 598 | handle->notification_handler (NULL, handle, |
599 | NotificationType_NO_PEER, | 599 | GNUNET_CONVERSATION_NT_NO_PEER, |
600 | NULL); | 600 | NULL); |
601 | } | 601 | } |
602 | 602 | ||
@@ -726,7 +726,7 @@ GNUNET_CONVERSATION_call (struct GNUNET_CONVERSATION_Handle *h, | |||
726 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 726 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
727 | _("`%s' is not a valid public key\n"), | 727 | _("`%s' is not a valid public key\n"), |
728 | callee); | 728 | callee); |
729 | h->notification_handler (NULL, h, NotificationType_NO_PEER, NULL); | 729 | h->notification_handler (NULL, h, GNUNET_CONVERSATION_NT_NO_PEER, NULL); |
730 | return; | 730 | return; |
731 | } | 731 | } |
732 | initiate_call (h, peer); | 732 | initiate_call (h, peer); |
diff --git a/src/conversation/gnunet-conversation.c b/src/conversation/gnunet-conversation.c index 9570737f4..f778c4c01 100644 --- a/src/conversation/gnunet-conversation.c +++ b/src/conversation/gnunet-conversation.c | |||
@@ -112,35 +112,35 @@ notification_handler (void *cls, struct GNUNET_CONVERSATION_Handle *handle, int | |||
112 | { | 112 | { |
113 | switch (type) | 113 | switch (type) |
114 | { | 114 | { |
115 | case NotificationType_SERVICE_BLOCKED: | 115 | case GNUNET_CONVERSATION_NT_SERVICE_BLOCKED: |
116 | FPRINTF (stdout, _("The service is already in use. Try again later.")); | 116 | FPRINTF (stdout, _("The service is already in use. Try again later.")); |
117 | 117 | ||
118 | break; | 118 | break; |
119 | 119 | ||
120 | case NotificationType_NO_PEER: | 120 | case GNUNET_CONVERSATION_NT_NO_PEER: |
121 | FPRINTF (stdout, _("The Peer you were calling is no correct peer.\n")); | 121 | FPRINTF (stdout, _("The Peer you were calling is no correct peer.\n")); |
122 | 122 | ||
123 | break; | 123 | break; |
124 | 124 | ||
125 | case NotificationType_NO_ANSWER: | 125 | case GNUNET_CONVERSATION_NT_NO_ANSWER: |
126 | FPRINTF (stdout, _("Peer %s did not answer your call.\n"), | 126 | FPRINTF (stdout, _("Peer %s did not answer your call.\n"), |
127 | GNUNET_i2s_full (peer)); | 127 | GNUNET_i2s_full (peer)); |
128 | 128 | ||
129 | break; | 129 | break; |
130 | 130 | ||
131 | case NotificationType_AVAILABLE_AGAIN: | 131 | case GNUNET_CONVERSATION_NT_AVAILABLE_AGAIN: |
132 | FPRINTF (stdout, _("Peer %s is now available.\n"), | 132 | FPRINTF (stdout, _("Peer %s is now available.\n"), |
133 | GNUNET_i2s_full (peer)); | 133 | GNUNET_i2s_full (peer)); |
134 | 134 | ||
135 | break; | 135 | break; |
136 | 136 | ||
137 | case NotificationType_CALL_ACCEPTED: | 137 | case GNUNET_CONVERSATION_NT_CALL_ACCEPTED: |
138 | FPRINTF (stdout, _("Peer %s has accepted your call.\n"), | 138 | FPRINTF (stdout, _("Peer %s has accepted your call.\n"), |
139 | GNUNET_i2s_full (peer)); | 139 | GNUNET_i2s_full (peer)); |
140 | 140 | ||
141 | break; | 141 | break; |
142 | 142 | ||
143 | case NotificationType_CALL_TERMINATED: | 143 | case GNUNET_CONVERSATION_NT_CALL_TERMINATED: |
144 | FPRINTF (stdout, _("Peer %s has terminated the call.\n"), | 144 | FPRINTF (stdout, _("Peer %s has terminated the call.\n"), |
145 | GNUNET_i2s_full (peer)); | 145 | GNUNET_i2s_full (peer)); |
146 | break; | 146 | break; |
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index 470485fed..5575b23fc 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -477,7 +477,7 @@ transmit_server_reject_message (void *cls, size_t size, void *buf) | |||
477 | 477 | ||
478 | if (NULL == cls) | 478 | if (NULL == cls) |
479 | { | 479 | { |
480 | msg->reason = htons (REJECT_REASON_NOT_AVAILABLE); | 480 | msg->reason = htons (GNUNET_CONVERSATION_REJECT_REASON_NOT_AVAILABLE); |
481 | } | 481 | } |
482 | else | 482 | else |
483 | { | 483 | { |
@@ -1056,7 +1056,7 @@ handle_mesh_initiate_message (void *cls, struct GNUNET_MESH_Tunnel *tunnel, | |||
1056 | _ | 1056 | _ |
1057 | ("Rejected call from %s because there is an active call"), | 1057 | ("Rejected call from %s because there is an active call"), |
1058 | GNUNET_i2s_full (peer)); | 1058 | GNUNET_i2s_full (peer)); |
1059 | reject_reason = htons (REJECT_REASON_ACTIVE_CALL); | 1059 | reject_reason = htons (GNUNET_CONVERSATION_REJECT_REASON_ACTIVE_CALL); |
1060 | 1060 | ||
1061 | // Notifying client about missed call | 1061 | // Notifying client about missed call |
1062 | size_t msg_size = | 1062 | size_t msg_size = |
@@ -1094,7 +1094,7 @@ handle_mesh_initiate_message (void *cls, struct GNUNET_MESH_Tunnel *tunnel, | |||
1094 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1094 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1095 | _("Got a call from %s while no client connected.\n"), | 1095 | _("Got a call from %s while no client connected.\n"), |
1096 | GNUNET_i2s_full (peer)); | 1096 | GNUNET_i2s_full (peer)); |
1097 | reject_reason = htons (REJECT_REASON_NO_CLIENT); | 1097 | reject_reason = htons (GNUNET_CONVERSATION_REJECT_REASON_NO_CLIENT); |
1098 | // Store missed calls | 1098 | // Store missed calls |
1099 | struct MissedCall call; | 1099 | struct MissedCall call; |
1100 | memcpy (&(call.peer), peer, sizeof (struct GNUNET_PeerIdentity)); | 1100 | memcpy (&(call.peer), peer, sizeof (struct GNUNET_PeerIdentity)); |
diff --git a/src/include/gnunet_conversation_service.h b/src/include/gnunet_conversation_service.h index 51e734f03..efe4c4d4c 100644 --- a/src/include/gnunet_conversation_service.h +++ b/src/include/gnunet_conversation_service.h | |||
@@ -38,27 +38,27 @@ extern "C" | |||
38 | /** | 38 | /** |
39 | * Version of the conversation API. | 39 | * Version of the conversation API. |
40 | */ | 40 | */ |
41 | #define GNUNET_conversation_VERSION 0x00000001 | 41 | #define GNUNET_CONVERSATION_VERSION 0x00000001 |
42 | 42 | ||
43 | enum GNUNET_CONVERSATION_RejectReason | 43 | enum GNUNET_CONVERSATION_RejectReason |
44 | { | 44 | { |
45 | REJECT_REASON_GENERIC = 0, | 45 | GNUNET_CONVERSATION_REJECT_REASON_GENERIC = 0, |
46 | REJECT_REASON_NOT_AVAILABLE, | 46 | GNUNET_CONVERSATION_REJECT_REASON_NOT_AVAILABLE, |
47 | REJECT_REASON_NO_CLIENT, | 47 | GNUNET_CONVERSATION_REJECT_REASON_NO_CLIENT, |
48 | REJECT_REASON_ACTIVE_CALL, | 48 | GNUNET_CONVERSATION_REJECT_REASON_ACTIVE_CALL, |
49 | REJECT_REASON_NOT_WANTED, | 49 | GNUNET_CONVERSATION_REJECT_REASON_NOT_WANTED, |
50 | REJECT_REASON_NO_ANSWER | 50 | GNUNET_CONVERSATION_REJECT_REASON_NO_ANSWER |
51 | 51 | ||
52 | }; | 52 | }; |
53 | 53 | ||
54 | enum GNUNET_CONVERSATION_NotificationType | 54 | enum GNUNET_CONVERSATION_NotificationType |
55 | { | 55 | { |
56 | NotificationType_SERVICE_BLOCKED = 0, | 56 | GNUNET_CONVERSATION_NT_SERVICE_BLOCKED = 0, |
57 | NotificationType_NO_PEER, | 57 | GNUNET_CONVERSATION_NT_NO_PEER, |
58 | NotificationType_NO_ANSWER, | 58 | GNUNET_CONVERSATION_NT_NO_ANSWER, |
59 | NotificationType_AVAILABLE_AGAIN, | 59 | GNUNET_CONVERSATION_NT_AVAILABLE_AGAIN, |
60 | NotificationType_CALL_ACCEPTED, | 60 | GNUNET_CONVERSATION_NT_CALL_ACCEPTED, |
61 | NotificationType_CALL_TERMINATED | 61 | GNUNET_CONVERSATION_NT_CALL_TERMINATED |
62 | }; | 62 | }; |
63 | 63 | ||
64 | 64 | ||