CurlSharp.NativeMethods.curl_shim_install_share_delegates C# (CSharp) Method

curl_shim_install_share_delegates() private method

private curl_shim_install_share_delegates ( IntPtr pShare, IntPtr pThis, _ShimLockCallback pLock, _ShimUnlockCallback pUnlock ) : int
pShare System.IntPtr
pThis System.IntPtr
pLock _ShimLockCallback
pUnlock _ShimUnlockCallback
return int
        internal static extern int curl_shim_install_share_delegates(IntPtr pShare,
            IntPtr pThis, _ShimLockCallback pLock, _ShimUnlockCallback pUnlock);

Usage Example

Ejemplo n.º 1
0
        private void installDelegates()
        {
            _hThis   = GCHandle.Alloc(this);
            _ptrThis = (IntPtr)_hThis;
#if USE_LIBCURLSHIM
            _pDelLock   = LockDelegate;
            _pDelUnlock = UnlockDelegate;
            NativeMethods.curl_shim_install_share_delegates(_pShare, _ptrThis, _pDelLock, _pDelUnlock);
#endif
        }