summaryrefslogtreecommitdiff
path: root/src/include/gnunet_nat_auto_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_nat_auto_service.h')
-rw-r--r--src/include/gnunet_nat_auto_service.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/include/gnunet_nat_auto_service.h b/src/include/gnunet_nat_auto_service.h
index b40c515a5..78284dc01 100644
--- a/src/include/gnunet_nat_auto_service.h
+++ b/src/include/gnunet_nat_auto_service.h
@@ -56,11 +56,11 @@ struct GNUNET_NAT_AUTO_Test;
56 * @return handle to cancel NAT test 56 * @return handle to cancel NAT test
57 */ 57 */
58struct GNUNET_NAT_AUTO_Test * 58struct GNUNET_NAT_AUTO_Test *
59GNUNET_NAT_AUTO_test_start(const struct GNUNET_CONFIGURATION_Handle *cfg, 59GNUNET_NAT_AUTO_test_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
60 uint8_t proto, 60 uint8_t proto,
61 const char *section_name, 61 const char *section_name,
62 GNUNET_NAT_TestCallback report, 62 GNUNET_NAT_TestCallback report,
63 void *report_cls); 63 void *report_cls);
64 64
65 65
66/** 66/**
@@ -69,7 +69,7 @@ GNUNET_NAT_AUTO_test_start(const struct GNUNET_CONFIGURATION_Handle *cfg,
69 * @param tst test to stop. 69 * @param tst test to stop.
70 */ 70 */
71void 71void
72GNUNET_NAT_AUTO_test_stop(struct GNUNET_NAT_AUTO_Test *tst); 72GNUNET_NAT_AUTO_test_stop (struct GNUNET_NAT_AUTO_Test *tst);
73 73
74 74
75/** 75/**
@@ -85,7 +85,7 @@ struct GNUNET_NAT_AUTO_AutoHandle;
85 * @return point to a static string containing the error code 85 * @return point to a static string containing the error code
86 */ 86 */
87const char * 87const char *
88GNUNET_NAT_AUTO_status2string(enum GNUNET_NAT_StatusCode err); 88GNUNET_NAT_AUTO_status2string (enum GNUNET_NAT_StatusCode err);
89 89
90 90
91/** 91/**
@@ -99,7 +99,8 @@ GNUNET_NAT_AUTO_status2string(enum GNUNET_NAT_StatusCode err);
99 */ 99 */
100typedef void 100typedef void
101(*GNUNET_NAT_AUTO_AutoResultCallback)(void *cls, 101(*GNUNET_NAT_AUTO_AutoResultCallback)(void *cls,
102 const struct GNUNET_CONFIGURATION_Handle *diff, 102 const struct
103 GNUNET_CONFIGURATION_Handle *diff,
103 enum GNUNET_NAT_StatusCode result, 104 enum GNUNET_NAT_StatusCode result,
104 enum GNUNET_NAT_Type type); 105 enum GNUNET_NAT_Type type);
105 106
@@ -114,9 +115,9 @@ typedef void
114 * @return handle to cancel operation 115 * @return handle to cancel operation
115 */ 116 */
116struct GNUNET_NAT_AUTO_AutoHandle * 117struct GNUNET_NAT_AUTO_AutoHandle *
117GNUNET_NAT_AUTO_autoconfig_start(const struct GNUNET_CONFIGURATION_Handle *cfg, 118GNUNET_NAT_AUTO_autoconfig_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
118 GNUNET_NAT_AUTO_AutoResultCallback cb, 119 GNUNET_NAT_AUTO_AutoResultCallback cb,
119 void *cb_cls); 120 void *cb_cls);
120 121
121 122
122/** 123/**
@@ -125,7 +126,7 @@ GNUNET_NAT_AUTO_autoconfig_start(const struct GNUNET_CONFIGURATION_Handle *cfg,
125 * @param ah handle for operation to abort 126 * @param ah handle for operation to abort
126 */ 127 */
127void 128void
128GNUNET_NAT_AUTO_autoconfig_cancel(struct GNUNET_NAT_AUTO_AutoHandle *ah); 129GNUNET_NAT_AUTO_autoconfig_cancel (struct GNUNET_NAT_AUTO_AutoHandle *ah);
129 130
130 131
131#endif 132#endif