summaryrefslogtreecommitdiff
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.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/include/gnunet_op_lib.h b/src/include/gnunet_op_lib.h
index c96db354d..77fa7f955 100644
--- a/src/include/gnunet_op_lib.h
+++ b/src/include/gnunet_op_lib.h
@@ -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