aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_helper_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_helper_lib.h')
-rw-r--r--src/include/gnunet_helper_lib.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h
index 5a34daf78..e6b3ae535 100644
--- a/src/include/gnunet_helper_lib.h
+++ b/src/include/gnunet_helper_lib.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Philipp Toelke 22 * @author Philipp Toelke
@@ -74,12 +74,12 @@ typedef void
74 * @return the new Handle, NULL on error 74 * @return the new Handle, NULL on error
75 */ 75 */
76struct GNUNET_HELPER_Handle * 76struct GNUNET_HELPER_Handle *
77GNUNET_HELPER_start (int with_control_pipe, 77GNUNET_HELPER_start(int with_control_pipe,
78 const char *binary_name, 78 const char *binary_name,
79 char *const binary_argv[], 79 char *const binary_argv[],
80 GNUNET_MessageTokenizerCallback cb, 80 GNUNET_MessageTokenizerCallback cb,
81 GNUNET_HELPER_ExceptionCallback exp_cb, 81 GNUNET_HELPER_ExceptionCallback exp_cb,
82 void *cb_cls); 82 void *cb_cls);
83 83
84 84
85/** 85/**
@@ -92,7 +92,7 @@ GNUNET_HELPER_start (int with_control_pipe,
92 * @return #GNUNET_OK on success; #GNUNET_SYSERR on error 92 * @return #GNUNET_OK on success; #GNUNET_SYSERR on error
93 */ 93 */
94int 94int
95GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); 95GNUNET_HELPER_kill(struct GNUNET_HELPER_Handle *h, int soft_kill);
96 96
97 97
98/** 98/**
@@ -104,7 +104,7 @@ GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill);
104 * @return #GNUNET_OK on success; #GNUNET_SYSERR on error 104 * @return #GNUNET_OK on success; #GNUNET_SYSERR on error
105 */ 105 */
106int 106int
107GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h); 107GNUNET_HELPER_wait(struct GNUNET_HELPER_Handle *h);
108 108
109 109
110/** 110/**
@@ -113,7 +113,7 @@ GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h);
113 * @param h the helper handle to free 113 * @param h the helper handle to free
114 */ 114 */
115void 115void
116GNUNET_HELPER_destroy (struct GNUNET_HELPER_Handle *h); 116GNUNET_HELPER_destroy(struct GNUNET_HELPER_Handle *h);
117 117
118 118
119/** 119/**
@@ -125,7 +125,7 @@ GNUNET_HELPER_destroy (struct GNUNET_HELPER_Handle *h);
125 * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper 125 * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper
126 */ 126 */
127void 127void
128GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill); 128GNUNET_HELPER_stop(struct GNUNET_HELPER_Handle *h, int soft_kill);
129 129
130 130
131/** 131/**
@@ -137,7 +137,7 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill);
137 * #GNUNET_SYSERR during GNUNET_HELPER_destroy 137 * #GNUNET_SYSERR during GNUNET_HELPER_destroy
138 */ 138 */
139typedef void (*GNUNET_HELPER_Continuation)(void *cls, 139typedef void (*GNUNET_HELPER_Continuation)(void *cls,
140 int result); 140 int result);
141 141
142 142
143/** 143/**
@@ -160,11 +160,11 @@ struct GNUNET_HELPER_SendHandle;
160 * not be abortable) 160 * not be abortable)
161 */ 161 */
162struct GNUNET_HELPER_SendHandle * 162struct GNUNET_HELPER_SendHandle *
163GNUNET_HELPER_send (struct GNUNET_HELPER_Handle *h, 163GNUNET_HELPER_send(struct GNUNET_HELPER_Handle *h,
164 const struct GNUNET_MessageHeader *msg, 164 const struct GNUNET_MessageHeader *msg,
165 int can_drop, 165 int can_drop,
166 GNUNET_HELPER_Continuation cont, 166 GNUNET_HELPER_Continuation cont,
167 void *cont_cls); 167 void *cont_cls);
168 168
169 169
170/** 170/**
@@ -174,7 +174,7 @@ GNUNET_HELPER_send (struct GNUNET_HELPER_Handle *h,
174 * @param sh operation to cancel 174 * @param sh operation to cancel
175 */ 175 */
176void 176void
177GNUNET_HELPER_send_cancel (struct GNUNET_HELPER_SendHandle *sh); 177GNUNET_HELPER_send_cancel(struct GNUNET_HELPER_SendHandle *sh);
178 178
179 179
180#endif 180#endif