From 7e3cf5f461eb4fbb7581672bf0835da07c378136 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:03:48 +0100 Subject: tighten formatting rules --- src/transport/plugin_transport_smtp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/transport/plugin_transport_smtp.c') diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c index 7fbbc9126..330023118 100644 --- a/src/transport/plugin_transport_smtp.c +++ b/src/transport/plugin_transport_smtp.c @@ -257,6 +257,7 @@ END: return NULL; } + /* *************** API implementation *************** */ /** @@ -287,6 +288,7 @@ api_verify_hello (const GNUNET_MessageHello *hello) return GNUNET_OK; } + /** * Create a hello-Message for the current node. The hello is created * without signature and without a timestamp. The GNUnet core will @@ -336,6 +338,7 @@ api_create_hello () return msg; } + struct GetMessageClosure { unsigned int esize; @@ -361,6 +364,7 @@ get_message (void **buf, int *len, void *cls) return gmc->ebody; } + /** * Send a message to the specified remote node. * @@ -529,6 +533,7 @@ api_send (GNUNET_TSession *tsession, const void *msg, const unsigned int size, return GNUNET_OK; } + /** * Establish a connection to a remote node. * @param hello the hello-Message for the target node @@ -551,6 +556,7 @@ api_connect (const GNUNET_MessageHello *hello, GNUNET_TSession **tsessionPtr, return GNUNET_OK; } + /** * Disconnect from a remote node. * @@ -569,6 +575,7 @@ api_disconnect (GNUNET_TSession *tsession) return GNUNET_OK; } + /** * Start the server process to receive inbound traffic. * @return GNUNET_OK on success, GNUNET_SYSERR if the operation failed @@ -589,6 +596,7 @@ api_start_transport_server () return GNUNET_OK; } + /** * Shutdown the server process (stop receiving inbound traffic). Maybe * restarted later! @@ -604,6 +612,7 @@ api_stop_transport_server () return GNUNET_OK; } + /** * Convert SMTP hello to an IP address (always fails). */ @@ -614,6 +623,7 @@ api_hello_to_address (const GNUNET_MessageHello *hello, void **sa, return GNUNET_SYSERR; } + /** * Always fails. */ @@ -623,6 +633,7 @@ api_associate (GNUNET_TSession *tsession) return GNUNET_SYSERR; /* SMTP connections can never be associated */ } + /** * Always succeeds (for now; we should look at adding * frequency limits to SMTP in the future!). @@ -634,6 +645,7 @@ api_test_would_try (GNUNET_TSession *tsession, unsigned int size, return GNUNET_OK; /* we always try... */ } + /** * The exported method. Makes the core api available via a global and * returns the smtp transport API. @@ -714,6 +726,7 @@ inittransport_smtp (struct GNUNET_CoreAPIForTransport *core) return &smtpAPI; } + void donetransport_smtp () { @@ -733,4 +746,5 @@ donetransport_smtp () email = NULL; } + /* end of smtp.c */ -- cgit v1.2.3