public static void DisposeAndClearHandle(ref SafeCurlHandle curlHandle) { if (curlHandle != null) { curlHandle.Dispose(); curlHandle = null; } }
public static extern CURLcode RegisterSslCtxCallback( SafeCurlHandle curl, SslCtxCallback callback, ref SafeCallbackHandle callbackHandle);
public static extern CURLcode EasyUnpause(SafeCurlHandle easy);
public static extern CURLcode EasyGetInfoLong(SafeCurlHandle handle, CURLINFO info, out long value);
public static extern CURLcode EasySetOptionPointer(SafeCurlHandle curl, CURLoption option, SafeHandle value);
public static extern CURLcode RegisterDebugCallback( SafeCurlHandle curl, DebugCallback callback, IntPtr userPointer, ref SafeCallbackHandle callbackHandle);
public static extern void RegisterSeekCallback( SafeCurlHandle curl, SeekCallback callback, IntPtr userPointer, ref SafeCallbackHandle callbackHandle);
public static extern void curl_easy_reset( SafeCurlHandle curl);
public static extern int curl_easy_perform( SafeCurlHandle curl);
public static extern int curl_easy_getinfo( SafeCurlHandle handle, int info, out ulong value);
public static extern int curl_easy_setopt( SafeCurlHandle curl, int option, Delegate callback);
public static extern int curl_easy_getinfo( SafeCurlHandle curl, int info, ref long value); // Using a ref because it won't be populated on error
public unsafe static extern int curl_easy_setopt( SafeCurlHandle curl, int option, curl_unsafe_write_callback callback);
public static extern CURLcode EasyGetInfoPointer(SafeCurlHandle handle, CURLINFO info, out IntPtr value);
public static extern int curl_easy_setopt( SafeCurlHandle curl, int option, curl_ioctl_callback callback);
public static extern int curl_easy_setopt( SafeCurlHandle curl, int option, long value);
public static extern CURLMcode MultiRemoveHandle(SafeCurlMultiHandle multiHandle, SafeCurlHandle easyHandle);
public static extern void RegisterReadWriteCallback( SafeCurlHandle curl, ReadWriteFunction functionType, ReadWriteCallback callback, IntPtr userPointer, ref SafeCallbackHandle callbackHandle);
public static extern CURLcode EasySetOptionLong(SafeCurlHandle curl, CURLoption option, long value);
public static extern CURLcode EasySetOptionPointer(SafeCurlHandle curl, CURLoption option, Delegate callback);
public static extern CURLcode EasyPerform(SafeCurlHandle curl);
public static extern int curl_multi_remove_handle( SafeCurlMultiHandle multi_handle, SafeCurlHandle easy_handle);
public static extern int curl_easy_pause(SafeCurlHandle easy, int bitmask);