diff options
Diffstat (limited to 'src/include/gnunet_helper_lib.h')
-rw-r--r-- | src/include/gnunet_helper_lib.h | 38 |
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 | */ |
76 | struct GNUNET_HELPER_Handle * | 76 | struct GNUNET_HELPER_Handle * |
77 | GNUNET_HELPER_start (int with_control_pipe, | 77 | GNUNET_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 | */ |
94 | int | 94 | int |
95 | GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); | 95 | GNUNET_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 | */ |
106 | int | 106 | int |
107 | GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h); | 107 | GNUNET_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 | */ |
115 | void | 115 | void |
116 | GNUNET_HELPER_destroy (struct GNUNET_HELPER_Handle *h); | 116 | GNUNET_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 | */ |
127 | void | 127 | void |
128 | GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill); | 128 | GNUNET_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 | */ |
139 | typedef void (*GNUNET_HELPER_Continuation)(void *cls, | 139 | typedef 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 | */ |
162 | struct GNUNET_HELPER_SendHandle * | 162 | struct GNUNET_HELPER_SendHandle * |
163 | GNUNET_HELPER_send (struct GNUNET_HELPER_Handle *h, | 163 | GNUNET_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 | */ |
176 | void | 176 | void |
177 | GNUNET_HELPER_send_cancel (struct GNUNET_HELPER_SendHandle *sh); | 177 | GNUNET_HELPER_send_cancel(struct GNUNET_HELPER_SendHandle *sh); |
178 | 178 | ||
179 | 179 | ||
180 | #endif | 180 | #endif |