libgpac
Documentation of the core library of GPAC
GF_FileDownload Struct Reference

#include <mpd.h>

Data Fields

GF_Err(* new_session )(GF_FileDownload *getter, char *url)
 
void(* del_session )(GF_FileDownload *getter)
 
const char *(* get_cache_name )(GF_FileDownload *getter)
 
GF_Err(* get_status )(GF_FileDownload *getter)
 
void * udta
 
void * session
 

Detailed Description

file download abstraction object

Field Documentation

◆ new_session

GF_Err(* GF_FileDownload::new_session) (GF_FileDownload *getter, char *url)

callback function for session creation, fetches the given URL

◆ del_session

void(* GF_FileDownload::del_session) (GF_FileDownload *getter)

callback function to destroy the session

◆ get_cache_name

const char*(* GF_FileDownload::get_cache_name) (GF_FileDownload *getter)

callback function to get the local file name

◆ get_status

GF_Err(* GF_FileDownload::get_status) (GF_FileDownload *getter)

callback function to get download status - returns:

  • GF_OK: session is done
  • GF_NOT_READY: session is in progress
  • Any other error: session done with error

◆ udta

void* GF_FileDownload::udta

user private

◆ session

void* GF_FileDownload::session

created by user after new_session