Skip to content

Commit 75ddd37

Browse files
committed
Update curl_aliases.h
1 parent de79654 commit 75ddd37

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

Runtime/Bindings/FFI/curl/curl_aliases.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,27 @@ typedef enum {
291291
CURLU_NO_GUESS_SCHEME = (1 << 15),
292292
} CURLUFeatureFlags;
293293

294+
// Exported from options.h
295+
296+
typedef enum {
297+
CURLOT_LONG, /* long (a range of values) */
298+
CURLOT_VALUES, /* (a defined set or bitmask) */
299+
CURLOT_OFF_T, /* curl_off_t (a range of values) */
300+
CURLOT_OBJECT, /* pointer (void *) */
301+
CURLOT_STRING, /* (char * to null-terminated buffer) */
302+
CURLOT_SLIST, /* (struct curl_slist *) */
303+
CURLOT_CBPTR, /* (void * passed as-is to a callback) */
304+
CURLOT_BLOB, /* blob (struct curl_blob *) */
305+
CURLOT_FUNCTION /* function pointer */
306+
} curl_easytype;
307+
308+
struct curl_easyoption {
309+
const char *name;
310+
CURLoption id;
311+
curl_easytype type;
312+
unsigned int flags;
313+
};
314+
294315
// Exported from easy.h
295316
typedef CURLcode curl_ssls_export_cb(CURL* handle,
296317
void* userptr,
@@ -304,7 +325,8 @@ typedef CURLcode curl_ssls_export_cb(CURL* handle,
304325
const char* alpn,
305326
size_t earlydata_max);
306327

307-
// Exported from header.h
328+
329+
// Exported from header.h
308330
typedef enum {
309331
CURLHE_OK,
310332
CURLHE_BADINDEX, /* header exists but not with this index */

0 commit comments

Comments
 (0)