aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-21 14:43:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-21 14:43:47 +0000
commit75c121f5ae37d3c7ccd95f4449aea33ccb4200f0 (patch)
tree3fb440657f99a826cc4f963db55e28cb426ed9d8 /src/core/core_api.c
parenteb2371484330014aaef9b0bfac1f1ae191bc2460 (diff)
downloadgnunet-75c121f5ae37d3c7ccd95f4449aea33ccb4200f0.tar.gz
gnunet-75c121f5ae37d3c7ccd95f4449aea33ccb4200f0.zip
change to core pai
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 511c7ee99..a123a3a26 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -800,7 +800,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
800 &h->me.hashPubKey, pr, 800 &h->me.hashPubKey, pr,
801 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 801 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
802 if (NULL != h->connects) 802 if (NULL != h->connects)
803 h->connects (h->cls, &h->me, NULL, 0); 803 h->connects (h->cls, &h->me);
804 break; 804 break;
805 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT: 805 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT:
806 if (msize < sizeof (struct ConnectNotifyMessage)) 806 if (msize < sizeof (struct ConnectNotifyMessage))
@@ -841,7 +841,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
841 &cnm->peer.hashPubKey, pr, 841 &cnm->peer.hashPubKey, pr,
842 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 842 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
843 if (NULL != h->connects) 843 if (NULL != h->connects)
844 h->connects (h->cls, &cnm->peer, NULL, 0); 844 h->connects (h->cls, &cnm->peer);
845 break; 845 break;
846 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT: 846 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT:
847 if (msize != sizeof (struct DisconnectNotifyMessage)) 847 if (msize != sizeof (struct DisconnectNotifyMessage))
@@ -924,14 +924,14 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
924 return; 924 return;
925 } 925 }
926 if (GNUNET_OK != 926 if (GNUNET_OK !=
927 h->handlers[hpos].callback (h->cls, &ntm->peer, em, NULL,0)) 927 h->handlers[hpos].callback (h->cls, &ntm->peer, em))
928 { 928 {
929 /* error in processing, do not process other messages! */ 929 /* error in processing, do not process other messages! */
930 break; 930 break;
931 } 931 }
932 } 932 }
933 if (NULL != h->inbound_notify) 933 if (NULL != h->inbound_notify)
934 h->inbound_notify (h->cls, &ntm->peer, em, NULL, 0); 934 h->inbound_notify (h->cls, &ntm->peer, em);
935 break; 935 break;
936 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND: 936 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND:
937 if (msize < sizeof (struct NotifyTrafficMessage)) 937 if (msize < sizeof (struct NotifyTrafficMessage))
@@ -966,7 +966,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
966 GNUNET_break (0); 966 GNUNET_break (0);
967 break; 967 break;
968 } 968 }
969 h->outbound_notify (h->cls, &ntm->peer, em, NULL, 0); 969 h->outbound_notify (h->cls, &ntm->peer, em);
970 break; 970 break;
971 case GNUNET_MESSAGE_TYPE_CORE_SEND_READY: 971 case GNUNET_MESSAGE_TYPE_CORE_SEND_READY:
972 if (msize != sizeof (struct SendMessageReady)) 972 if (msize != sizeof (struct SendMessageReady))