From: Christian Grothoff Date: Tue, 17 Jan 2017 13:41:50 +0000 (+0100) Subject: dead code elimination X-Git-Tag: taler-0.2.1~426 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa99007bded5999327a2127689dba8d061973c82;p=oweals%2Fgnunet.git dead code elimination --- diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 7d99563ea..8136770b7 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h @@ -109,49 +109,6 @@ typedef void void *peer_cls); -/** - * Functions with this signature are called whenever a message is - * received or transmitted. - * - * @param cls closure (set from #GNUNET_CORE_connect) - * @param peer the other peer involved (sender or receiver, NULL - * for loopback messages where we are both sender and receiver) - * @param message the actual message - * @return #GNUNET_OK to keep the connection open, - * #GNUNET_SYSERR to close connection to the peer (signal serious error) - */ -typedef int -(*GNUNET_CORE_MessageCallback) (void *cls, - const struct GNUNET_PeerIdentity *other, - const struct GNUNET_MessageHeader *message); - - -/** - * Message handler. Each struct specifies how to handle on particular - * type of message received. - */ -struct GNUNET_CORE_MessageHandler -{ - /** - * Function to call for messages of @e type. - */ - GNUNET_CORE_MessageCallback callback; - - /** - * Type of the message this handler covers. - */ - uint16_t type; - - /** - * Expected size of messages of this type. Use 0 for variable-size. - * If non-zero, messages of the given type will be discarded if they - * do not have the right size. - */ - uint16_t expected_size; - -}; - - /** * Function called after #GNUNET_CORE_connect has succeeded (or failed * for good). Note that the private key of the peer is intentionally