aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-05 19:56:16 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-05 19:56:16 +0000
commitb1780f05127f1c84c442f12fe84ae8e712032164 (patch)
tree58ecfc3fc8b92b3b5705b885260fcf456d6fe7d5 /src/include/gnunet_transport_plugin.h
parentdffa6f386418b19956f23f13f3f2a32cd803bca4 (diff)
downloadgnunet-b1780f05127f1c84c442f12fe84ae8e712032164.tar.gz
gnunet-b1780f05127f1c84c442f12fe84ae8e712032164.zip
-LRN: experimental HELLO URIs
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 9b39a4190..194d4d214 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -423,6 +423,26 @@ typedef const char *(*GNUNET_TRANSPORT_AddressToString) (void *cls,
423 const void *addr, 423 const void *addr,
424 size_t addrlen); 424 size_t addrlen);
425 425
426/**
427 * Function called to convert a string address to
428 * a binary address.
429 *
430 * @param cls closure ('struct Plugin*')
431 * @param addr string address
432 * @param addrlen length of the address
433 * @param buf location to store a buffer pointer
434 * If the function returns GNUNET_SYSERR, its contents are undefined.
435 * @param max size of the buffer
436 * @param buf_len location to store buffer size.
437 * If the function returns GNUNET_SYSERR, its contents are undefined.
438 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
439 */
440typedef int (*GNUNET_TRANSPORT_StringToAddress) (void *cls,
441 const char *addr,
442 uint16_t addrlen,
443 void **buf,
444 size_t *added);
445
426 446
427/** 447/**
428 * Each plugin is required to return a pointer to a struct of this 448 * Each plugin is required to return a pointer to a struct of this
@@ -477,6 +497,12 @@ struct GNUNET_TRANSPORT_PluginFunctions
477 GNUNET_TRANSPORT_AddressToString address_to_string; 497 GNUNET_TRANSPORT_AddressToString address_to_string;
478 498
479 /** 499 /**
500 * Function that will be called to convert a string address
501 * to binary (numeric conversion only).
502 */
503 GNUNET_TRANSPORT_StringToAddress string_to_address;
504
505 /**
480 * Function that will be called tell the plugin to create a session 506 * Function that will be called tell the plugin to create a session
481 * object 507 * object
482 */ 508 */