Skip to content

Commit 56f35d7

Browse files
committed
Update curl.lua
1 parent 75ddd37 commit 56f35d7

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Runtime/Bindings/FFI/curl/curl.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,27 @@ typedef enum {
301301
CURLU_NO_GUESS_SCHEME = (1 << 15),
302302
} CURLUFeatureFlags;
303303
304+
// Exported from options.h
305+
306+
typedef enum {
307+
CURLOT_LONG, /* long (a range of values) */
308+
CURLOT_VALUES, /* (a defined set or bitmask) */
309+
CURLOT_OFF_T, /* curl_off_t (a range of values) */
310+
CURLOT_OBJECT, /* pointer (void *) */
311+
CURLOT_STRING, /* (char * to null-terminated buffer) */
312+
CURLOT_SLIST, /* (struct curl_slist *) */
313+
CURLOT_CBPTR, /* (void * passed as-is to a callback) */
314+
CURLOT_BLOB, /* blob (struct curl_blob *) */
315+
CURLOT_FUNCTION /* function pointer */
316+
} curl_easytype;
317+
318+
struct curl_easyoption {
319+
const char* name;
320+
CURLoption id;
321+
curl_easytype type;
322+
unsigned int flags;
323+
};
324+
304325
// Exported from easy.h
305326
typedef CURLcode curl_ssls_export_cb(CURL* handle,
306327
void* userptr,

0 commit comments

Comments
 (0)