/** \brief Seek Callback * The libcurl seek callback. * Can't pass a virtual function to libcurl so we use these static wrappers. * * \param pCookie This contains the Job* that we want to call the Seek method on. * \param nOffset How many bytes to offset into the file. * \param nOrigin The origin from which to start the offset. */ int Job::SeekCallback( void* pCookie, curl_off_t nOffset, int nOrigin ) { Job* pcTransfer = (Job*)pCookie; if( pcTransfer == NULL ) { return 0; } return( pcTransfer->Seek( nOffset, nOrigin ) ); }