aboutsummaryrefslogtreecommitdiff
path: root/src/social
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-01-26 20:37:09 +0000
committerGabor X Toth <*@tg-x.net>2016-01-26 20:37:09 +0000
commit0841876fb932574a6c9ebaf2adbb64f1ffc06899 (patch)
tree568f136b839efc1ee71099cbab57f84c2428aed5 /src/social
parent0d2019bb407ef15f2376963b43169e145a338219 (diff)
downloadgnunet-0841876fb932574a6c9ebaf2adbb64f1ffc06899.tar.gz
gnunet-0841876fb932574a6c9ebaf2adbb64f1ffc06899.zip
psycutil: slicer callback args
Diffstat (limited to 'src/social')
-rw-r--r--src/social/gnunet-service-social.c28
-rw-r--r--src/social/social_api.c6
2 files changed, 26 insertions, 8 deletions
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c
index 04d506c12..828506c07 100644
--- a/src/social/gnunet-service-social.c
+++ b/src/social/gnunet-service-social.c
@@ -769,13 +769,15 @@ place_recv_relay_method (void *cls,
769 const struct GNUNET_PSYC_MessageMethod *meth, 769 const struct GNUNET_PSYC_MessageMethod *meth,
770 uint64_t message_id, 770 uint64_t message_id,
771 uint32_t flags, 771 uint32_t flags,
772 uint64_t fragment_offset,
773 uint32_t tmit_flags,
772 const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key, 774 const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key,
773 const char *method_name) 775 const char *method_name)
774{ 776{
775 struct Host *hst = cls; 777 struct Host *hst = cls;
776 struct Place *plc = &hst->plc; 778 struct Place *plc = &hst->plc;
777 779
778 // FIXME: relay message 780
779} 781}
780 782
781 783
@@ -783,6 +785,8 @@ static void
783place_recv_relay_modifier (void *cls, 785place_recv_relay_modifier (void *cls,
784 const struct GNUNET_MessageHeader *msg, 786 const struct GNUNET_MessageHeader *msg,
785 uint64_t message_id, 787 uint64_t message_id,
788 uint32_t flags,
789 uint64_t fragment_offset,
786 enum GNUNET_PSYC_Operator oper, 790 enum GNUNET_PSYC_Operator oper,
787 const char *name, 791 const char *name,
788 const void *value, 792 const void *value,
@@ -797,6 +801,8 @@ static void
797place_recv_relay_eom (void *cls, 801place_recv_relay_eom (void *cls,
798 const struct GNUNET_MessageHeader *msg, 802 const struct GNUNET_MessageHeader *msg,
799 uint64_t message_id, 803 uint64_t message_id,
804 uint32_t flags,
805 uint64_t fragment_offset,
800 uint8_t cancelled) 806 uint8_t cancelled)
801{ 807{
802 808
@@ -807,7 +813,8 @@ static void
807place_recv_relay_data (void *cls, 813place_recv_relay_data (void *cls,
808 const struct GNUNET_MessageHeader *msg, 814 const struct GNUNET_MessageHeader *msg,
809 uint64_t message_id, 815 uint64_t message_id,
810 uint64_t data_offset, 816 uint32_t flags,
817 uint64_t fragment_offset,
811 const void *data, 818 const void *data,
812 uint16_t data_size) 819 uint16_t data_size)
813{ 820{
@@ -820,6 +827,8 @@ place_recv_save_method (void *cls,
820 const struct GNUNET_PSYC_MessageMethod *meth, 827 const struct GNUNET_PSYC_MessageMethod *meth,
821 uint64_t message_id, 828 uint64_t message_id,
822 uint32_t flags, 829 uint32_t flags,
830 uint64_t fragment_offset,
831 uint32_t tmit_flags,
823 const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key, 832 const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key,
824 const char *method_name) 833 const char *method_name)
825{ 834{
@@ -852,7 +861,8 @@ static void
852place_recv_save_data (void *cls, 861place_recv_save_data (void *cls,
853 const struct GNUNET_MessageHeader *msg, 862 const struct GNUNET_MessageHeader *msg,
854 uint64_t message_id, 863 uint64_t message_id,
855 uint64_t data_offset, 864 uint32_t flags,
865 uint64_t fragment_offset,
856 const void *data, 866 const void *data,
857 uint16_t data_size) 867 uint16_t data_size)
858{ 868{
@@ -888,6 +898,8 @@ static void
888place_recv_save_eom (void *cls, 898place_recv_save_eom (void *cls,
889 const struct GNUNET_MessageHeader *msg, 899 const struct GNUNET_MessageHeader *msg,
890 uint64_t message_id, 900 uint64_t message_id,
901 uint32_t flags,
902 uint64_t fragment_offset,
891 uint8_t cancelled) 903 uint8_t cancelled)
892{ 904{
893 struct Place *plc = cls; 905 struct Place *plc = cls;
@@ -1235,10 +1247,10 @@ host_enter (const struct HostEnterRequest *hreq, struct Host **ret_hst)
1235 1247
1236 1248
1237const struct MsgProcRequest * 1249const struct MsgProcRequest *
1238relay_req_parse (const struct GNUNET_MessageHeader *msg, 1250msg_proc_parse (const struct GNUNET_MessageHeader *msg,
1239 uint32_t *flags, 1251 uint32_t *flags,
1240 const char **method_prefix, 1252 const char **method_prefix,
1241 struct GNUNET_HashCode *method_hash) 1253 struct GNUNET_HashCode *method_hash)
1242{ 1254{
1243 const struct MsgProcRequest *mpreq = (const struct MsgProcRequest *) msg; 1255 const struct MsgProcRequest *mpreq = (const struct MsgProcRequest *) msg;
1244 uint8_t method_size = ntohs (mpreq->header.size) - sizeof (*mpreq); 1256 uint8_t method_size = ntohs (mpreq->header.size) - sizeof (*mpreq);
@@ -1275,7 +1287,7 @@ client_recv_msg_proc_set (void *cls, struct GNUNET_SERVER_Client *client,
1275 uint32_t flags = 0; 1287 uint32_t flags = 0;
1276 struct GNUNET_HashCode method_hash; 1288 struct GNUNET_HashCode method_hash;
1277 const struct MsgProcRequest * 1289 const struct MsgProcRequest *
1278 mpreq = relay_req_parse (msg, &flags, &method_prefix, &method_hash); 1290 mpreq = msg_proc_parse (msg, &flags, &method_prefix, &method_hash);
1279 1291
1280 if (NULL == mpreq) { 1292 if (NULL == mpreq) {
1281 GNUNET_break (0); 1293 GNUNET_break (0);
diff --git a/src/social/social_api.c b/src/social/social_api.c
index 428afd2b9..c23987145 100644
--- a/src/social/social_api.c
+++ b/src/social/social_api.c
@@ -401,6 +401,8 @@ host_recv_notice_place_leave_method (void *cls,
401 const struct GNUNET_PSYC_MessageMethod *meth, 401 const struct GNUNET_PSYC_MessageMethod *meth,
402 uint64_t message_id, 402 uint64_t message_id,
403 uint32_t flags, 403 uint32_t flags,
404 uint64_t fragment_offset,
405 uint32_t tmit_flags,
404 const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key, 406 const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key,
405 const char *method_name) 407 const char *method_name)
406{ 408{
@@ -430,6 +432,8 @@ static void
430host_recv_notice_place_leave_modifier (void *cls, 432host_recv_notice_place_leave_modifier (void *cls,
431 const struct GNUNET_MessageHeader *msg, 433 const struct GNUNET_MessageHeader *msg,
432 uint64_t message_id, 434 uint64_t message_id,
435 uint32_t flags,
436 uint64_t fragment_offset,
433 enum GNUNET_PSYC_Operator oper, 437 enum GNUNET_PSYC_Operator oper,
434 const char *name, 438 const char *name,
435 const void *value, 439 const void *value,
@@ -459,6 +463,8 @@ static void
459host_recv_notice_place_leave_eom (void *cls, 463host_recv_notice_place_leave_eom (void *cls,
460 const struct GNUNET_MessageHeader *msg, 464 const struct GNUNET_MessageHeader *msg,
461 uint64_t message_id, 465 uint64_t message_id,
466 uint32_t flags,
467 uint64_t fragment_offset,
462 uint8_t cancelled) 468 uint8_t cancelled)
463{ 469{
464 struct GNUNET_SOCIAL_Host *hst = cls; 470 struct GNUNET_SOCIAL_Host *hst = cls;