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 @@ -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
295316typedef 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
308330typedef enum {
309331 CURLHE_OK ,
310332 CURLHE_BADINDEX , /* header exists but not with this index */
You can’t perform that action at this time.
0 commit comments