aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_op_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_op_lib.h')
-rw-r--r--src/include/gnunet_op_lib.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/include/gnunet_op_lib.h b/src/include/gnunet_op_lib.h
index d04577e2d..c96db354d 100644
--- a/src/include/gnunet_op_lib.h
+++ b/src/include/gnunet_op_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 * @file 22 * @file
@@ -40,14 +40,14 @@ struct GNUNET_OP_Handle;
40 * Create new operations handle. 40 * Create new operations handle.
41 */ 41 */
42struct GNUNET_OP_Handle * 42struct GNUNET_OP_Handle *
43GNUNET_OP_create (); 43GNUNET_OP_create();
44 44
45 45
46/** 46/**
47 * Destroy operations handle. 47 * Destroy operations handle.
48 */ 48 */
49void 49void
50GNUNET_OP_destroy (struct GNUNET_OP_Handle *h); 50GNUNET_OP_destroy(struct GNUNET_OP_Handle *h);
51 51
52 52
53/** 53/**
@@ -59,7 +59,7 @@ GNUNET_OP_destroy (struct GNUNET_OP_Handle *h);
59 * @return Operation ID to use. 59 * @return Operation ID to use.
60 */ 60 */
61uint64_t 61uint64_t
62GNUNET_OP_get_next_id (struct GNUNET_OP_Handle *h); 62GNUNET_OP_get_next_id(struct GNUNET_OP_Handle *h);
63 63
64 64
65/** 65/**
@@ -80,11 +80,11 @@ GNUNET_OP_get_next_id (struct GNUNET_OP_Handle *h);
80 * #GNUNET_NO if not found. 80 * #GNUNET_NO if not found.
81 */ 81 */
82int 82int
83GNUNET_OP_get (struct GNUNET_OP_Handle *h, 83GNUNET_OP_get(struct GNUNET_OP_Handle *h,
84 uint64_t op_id, 84 uint64_t op_id,
85 GNUNET_ResultCallback *result_cb, 85 GNUNET_ResultCallback *result_cb,
86 void **cls, 86 void **cls,
87 void **ctx); 87 void **ctx);
88 88
89 89
90/** 90/**
@@ -102,10 +102,10 @@ GNUNET_OP_get (struct GNUNET_OP_Handle *h,
102 * @return ID of the new operation. 102 * @return ID of the new operation.
103 */ 103 */
104uint64_t 104uint64_t
105GNUNET_OP_add (struct GNUNET_OP_Handle *h, 105GNUNET_OP_add(struct GNUNET_OP_Handle *h,
106 GNUNET_ResultCallback result_cb, 106 GNUNET_ResultCallback result_cb,
107 void *cls, 107 void *cls,
108 void *ctx); 108 void *ctx);
109 109
110 110
111/** 111/**
@@ -128,12 +128,12 @@ GNUNET_OP_add (struct GNUNET_OP_Handle *h,
128 * #GNUNET_NO if the operation was not found. 128 * #GNUNET_NO if the operation was not found.
129 */ 129 */
130int 130int
131GNUNET_OP_result (struct GNUNET_OP_Handle *h, 131GNUNET_OP_result(struct GNUNET_OP_Handle *h,
132 uint64_t op_id, 132 uint64_t op_id,
133 int64_t result_code, 133 int64_t result_code,
134 const void *data, 134 const void *data,
135 uint16_t data_size, 135 uint16_t data_size,
136 void **ctx); 136 void **ctx);
137 137
138 138
139/** 139/**
@@ -148,8 +148,8 @@ GNUNET_OP_result (struct GNUNET_OP_Handle *h,
148 * #GNUNET_NO if the operation was not found. 148 * #GNUNET_NO if the operation was not found.
149 */ 149 */
150int 150int
151GNUNET_OP_remove (struct GNUNET_OP_Handle *h, 151GNUNET_OP_remove(struct GNUNET_OP_Handle *h,
152 uint64_t op_id); 152 uint64_t op_id);
153 153
154 154
155#endif // GNUNET_OP_H 155#endif // GNUNET_OP_H