File tree Expand file tree Collapse file tree
Runtime/Bindings/FFI/curl Expand file tree Collapse file tree Original file line number Diff line number Diff 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
305326typedef CURLcode curl_ssls_export_cb(CURL* handle,
306327 void* userptr,
You can’t perform that action at this time.
0 commit comments