diff options
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r-- | src/core/core_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index cf7924a0d..ace80b952 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -97,12 +97,12 @@ struct GNUNET_CORE_Handle | |||
97 | /** | 97 | /** |
98 | * Function to call whenever we're notified about a peer connecting. | 98 | * Function to call whenever we're notified about a peer connecting. |
99 | */ | 99 | */ |
100 | GNUNET_CORE_ConnecTEventHandler connects; | 100 | GNUNET_CORE_ConnectEventHandler connects; |
101 | 101 | ||
102 | /** | 102 | /** |
103 | * Function to call whenever we're notified about a peer disconnecting. | 103 | * Function to call whenever we're notified about a peer disconnecting. |
104 | */ | 104 | */ |
105 | GNUNET_CORE_DisconnecTEventHandler disconnects; | 105 | GNUNET_CORE_DisconnectEventHandler disconnects; |
106 | 106 | ||
107 | /** | 107 | /** |
108 | * Function handlers for messages of particular type. | 108 | * Function handlers for messages of particular type. |
@@ -734,7 +734,7 @@ reconnect (struct GNUNET_CORE_Handle *h) | |||
734 | uint16_t *ts; | 734 | uint16_t *ts; |
735 | 735 | ||
736 | GNUNET_assert (NULL == h->mq); | 736 | GNUNET_assert (NULL == h->mq); |
737 | h->mq = GNUNET_CLIENT_connecT (h->cfg, | 737 | h->mq = GNUNET_CLIENT_connect (h->cfg, |
738 | "core", | 738 | "core", |
739 | handlers, | 739 | handlers, |
740 | &handle_mq_error, | 740 | &handle_mq_error, |
@@ -773,11 +773,11 @@ reconnect (struct GNUNET_CORE_Handle *h) | |||
773 | * NULL on error (in this case, init is never called) | 773 | * NULL on error (in this case, init is never called) |
774 | */ | 774 | */ |
775 | struct GNUNET_CORE_Handle * | 775 | struct GNUNET_CORE_Handle * |
776 | GNUNET_CORE_connecT (const struct GNUNET_CONFIGURATION_Handle *cfg, | 776 | GNUNET_CORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, |
777 | void *cls, | 777 | void *cls, |
778 | GNUNET_CORE_StartupCallback init, | 778 | GNUNET_CORE_StartupCallback init, |
779 | GNUNET_CORE_ConnecTEventHandler connects, | 779 | GNUNET_CORE_ConnectEventHandler connects, |
780 | GNUNET_CORE_DisconnecTEventHandler disconnects, | 780 | GNUNET_CORE_DisconnectEventHandler disconnects, |
781 | const struct GNUNET_MQ_MessageHandler *handlers) | 781 | const struct GNUNET_MQ_MessageHandler *handlers) |
782 | { | 782 | { |
783 | struct GNUNET_CORE_Handle *h; | 783 | struct GNUNET_CORE_Handle *h; |
@@ -810,7 +810,7 @@ GNUNET_CORE_connecT (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
810 | reconnect (h); | 810 | reconnect (h); |
811 | if (NULL == h->mq) | 811 | if (NULL == h->mq) |
812 | { | 812 | { |
813 | GNUNET_CORE_disconnecT (h); | 813 | GNUNET_CORE_disconnect (h); |
814 | return NULL; | 814 | return NULL; |
815 | } | 815 | } |
816 | return h; | 816 | return h; |
@@ -823,7 +823,7 @@ GNUNET_CORE_connecT (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
823 | * @param handle connection to core to disconnect | 823 | * @param handle connection to core to disconnect |
824 | */ | 824 | */ |
825 | void | 825 | void |
826 | GNUNET_CORE_disconnecT (struct GNUNET_CORE_Handle *handle) | 826 | GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle) |
827 | { | 827 | { |
828 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 828 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
829 | "Disconnecting from CORE service\n"); | 829 | "Disconnecting from CORE service\n"); |