diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-17 14:41:50 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-17 14:41:50 +0100 |
commit | fa99007bded5999327a2127689dba8d061973c82 (patch) | |
tree | 8d80e8d5a02afe9f6ef879fe384e6c1f0a8f8a1e | |
parent | 23c86a4ca5d1cd879550cd07afed4869475fb765 (diff) |
dead code elimination
-rw-r--r-- | src/include/gnunet_core_service.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 7d99563eae..8136770b78 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h @@ -110,49 +110,6 @@ typedef void /** - * 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 * not exposed here; if you need it, your process should try to read |