diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-08 23:32:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-08 23:32:08 +0000 |
commit | c937a1623b7fde5ff51c0055c0b3b65921a1f67d (patch) | |
tree | 1a1e4593d566c0377b4751e8af29843fe504f0b2 /src/include/gnunet_server_lib.h | |
parent | 05ce089eb0937591ea22802fc669dffed4219222 (diff) | |
download | gnunet-c937a1623b7fde5ff51c0055c0b3b65921a1f67d.tar.gz gnunet-c937a1623b7fde5ff51c0055c0b3b65921a1f67d.zip |
-cleanup
Diffstat (limited to 'src/include/gnunet_server_lib.h')
-rw-r--r-- | src/include/gnunet_server_lib.h | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h index e29be0d56..8fa5a8718 100644 --- a/src/include/gnunet_server_lib.h +++ b/src/include/gnunet_server_lib.h | |||
@@ -96,7 +96,7 @@ struct GNUNET_SERVER_MessageHandler | |||
96 | GNUNET_SERVER_MessageCallback callback; | 96 | GNUNET_SERVER_MessageCallback callback; |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * Closure argument for "callback". | 99 | * Closure argument for @e callback. |
100 | */ | 100 | */ |
101 | void *callback_cls; | 101 | void *callback_cls; |
102 | 102 | ||
@@ -210,8 +210,7 @@ GNUNET_SERVER_destroy (struct GNUNET_SERVER_Handle *server); | |||
210 | */ | 210 | */ |
211 | void | 211 | void |
212 | GNUNET_SERVER_add_handlers (struct GNUNET_SERVER_Handle *server, | 212 | GNUNET_SERVER_add_handlers (struct GNUNET_SERVER_Handle *server, |
213 | const struct GNUNET_SERVER_MessageHandler | 213 | const struct GNUNET_SERVER_MessageHandler *handlers); |
214 | *handlers); | ||
215 | 214 | ||
216 | 215 | ||
217 | /** | 216 | /** |
@@ -233,8 +232,8 @@ struct GNUNET_SERVER_TransmitHandle * | |||
233 | GNUNET_SERVER_notify_transmit_ready (struct GNUNET_SERVER_Client *client, | 232 | GNUNET_SERVER_notify_transmit_ready (struct GNUNET_SERVER_Client *client, |
234 | size_t size, | 233 | size_t size, |
235 | struct GNUNET_TIME_Relative timeout, | 234 | struct GNUNET_TIME_Relative timeout, |
236 | GNUNET_CONNECTION_TransmitReadyNotify | 235 | GNUNET_CONNECTION_TransmitReadyNotify callback, |
237 | callback, void *callback_cls); | 236 | void *callback_cls); |
238 | 237 | ||
239 | 238 | ||
240 | /** | 239 | /** |
@@ -513,8 +512,8 @@ GNUNET_SERVER_connect_notify (struct GNUNET_SERVER_Handle *server, | |||
513 | */ | 512 | */ |
514 | void | 513 | void |
515 | GNUNET_SERVER_disconnect_notify_cancel (struct GNUNET_SERVER_Handle *server, | 514 | GNUNET_SERVER_disconnect_notify_cancel (struct GNUNET_SERVER_Handle *server, |
516 | GNUNET_SERVER_DisconnectCallback | 515 | GNUNET_SERVER_DisconnectCallback callback, |
517 | callback, void *callback_cls); | 516 | void *callback_cls); |
518 | 517 | ||
519 | 518 | ||
520 | /** | 519 | /** |
@@ -587,8 +586,8 @@ GNUNET_SERVER_transmit_context_create (struct GNUNET_SERVER_Client *client); | |||
587 | * @param type type of the message | 586 | * @param type type of the message |
588 | */ | 587 | */ |
589 | void | 588 | void |
590 | GNUNET_SERVER_transmit_context_append_data (struct GNUNET_SERVER_TransmitContext | 589 | GNUNET_SERVER_transmit_context_append_data (struct GNUNET_SERVER_TransmitContext *tc, |
591 | *tc, const void *data, | 590 | const void *data, |
592 | size_t length, uint16_t type); | 591 | size_t length, uint16_t type); |
593 | 592 | ||
594 | 593 | ||
@@ -601,11 +600,8 @@ GNUNET_SERVER_transmit_context_append_data (struct GNUNET_SERVER_TransmitContext | |||
601 | * @param msg message to append | 600 | * @param msg message to append |
602 | */ | 601 | */ |
603 | void | 602 | void |
604 | GNUNET_SERVER_transmit_context_append_message (struct | 603 | GNUNET_SERVER_transmit_context_append_message (struct GNUNET_SERVER_TransmitContext *tc, |
605 | GNUNET_SERVER_TransmitContext | 604 | const struct GNUNET_MessageHeader *msg); |
606 | *tc, | ||
607 | const struct GNUNET_MessageHeader | ||
608 | *msg); | ||
609 | 605 | ||
610 | 606 | ||
611 | /** | 607 | /** |
@@ -634,8 +630,8 @@ GNUNET_SERVER_transmit_context_run (struct GNUNET_SERVER_TransmitContext *tc, | |||
634 | * serious error) | 630 | * serious error) |
635 | */ | 631 | */ |
636 | void | 632 | void |
637 | GNUNET_SERVER_transmit_context_destroy (struct GNUNET_SERVER_TransmitContext | 633 | GNUNET_SERVER_transmit_context_destroy (struct GNUNET_SERVER_TransmitContext *tc, |
638 | *tc, int success); | 634 | int success); |
639 | 635 | ||
640 | 636 | ||
641 | /** | 637 | /** |
@@ -731,9 +727,7 @@ struct GNUNET_SERVER_MessageStreamTokenizer; | |||
731 | * @return #GNUNET_OK on success, #GNUNET_SYSERR to stop further processing | 727 | * @return #GNUNET_OK on success, #GNUNET_SYSERR to stop further processing |
732 | */ | 728 | */ |
733 | typedef int (*GNUNET_SERVER_MessageTokenizerCallback) (void *cls, void *client, | 729 | typedef int (*GNUNET_SERVER_MessageTokenizerCallback) (void *cls, void *client, |
734 | const struct | 730 | const struct GNUNET_MessageHeader *message); |
735 | GNUNET_MessageHeader * | ||
736 | message); | ||
737 | 731 | ||
738 | 732 | ||
739 | /** | 733 | /** |
@@ -766,7 +760,8 @@ GNUNET_SERVER_mst_create (GNUNET_SERVER_MessageTokenizerCallback cb, | |||
766 | */ | 760 | */ |
767 | int | 761 | int |
768 | GNUNET_SERVER_mst_receive (struct GNUNET_SERVER_MessageStreamTokenizer *mst, | 762 | GNUNET_SERVER_mst_receive (struct GNUNET_SERVER_MessageStreamTokenizer *mst, |
769 | void *client_identity, const char *buf, size_t size, | 763 | void *client_identity, |
764 | const char *buf, size_t size, | ||
770 | int purge, int one_shot); | 765 | int purge, int one_shot); |
771 | 766 | ||
772 | 767 | ||
@@ -782,7 +777,7 @@ GNUNET_SERVER_mst_destroy (struct GNUNET_SERVER_MessageStreamTokenizer *mst); | |||
782 | /** | 777 | /** |
783 | * Signature of a function to create a custom tokenizer. | 778 | * Signature of a function to create a custom tokenizer. |
784 | * | 779 | * |
785 | * @param cls closure from 'GNUNET_SERVER_set_callbacks' | 780 | * @param cls closure from #GNUNET_SERVER_set_callbacks |
786 | * @param client handle to client the tokenzier will be used for | 781 | * @param client handle to client the tokenzier will be used for |
787 | * @return handle to custom tokenizer ('mst') | 782 | * @return handle to custom tokenizer ('mst') |
788 | */ | 783 | */ |
@@ -793,7 +788,7 @@ typedef void* (*GNUNET_SERVER_MstCreateCallback) (void *cls, | |||
793 | /** | 788 | /** |
794 | * Signature of a function to destroy a custom tokenizer. | 789 | * Signature of a function to destroy a custom tokenizer. |
795 | * | 790 | * |
796 | * @param cls closure from 'GNUNET_SERVER_set_callbacks' | 791 | * @param cls closure from #GNUNET_SERVER_set_callbacks |
797 | * @param mst custom tokenizer handle | 792 | * @param mst custom tokenizer handle |
798 | */ | 793 | */ |
799 | typedef void (*GNUNET_SERVER_MstDestroyCallback) (void *cls, void *mst); | 794 | typedef void (*GNUNET_SERVER_MstDestroyCallback) (void *cls, void *mst); |