doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Enumerations | Functions | Variables
fopen.c File Reference
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <stdlib.h>
#include <errno.h>
#include <curl/curl.h>

Go to the source code of this file.

Classes

struct  fcurl_data
 

Typedefs

typedef struct fcurl_data URL_FILE
 

Enumerations

enum  fcurl_type_e { CFTYPE_NONE =0, CFTYPE_FILE =1, CFTYPE_CURL =2 }
 

Functions

URL_FILEurl_fopen (char *url, const char *operation)
 
int url_fclose (URL_FILE *file)
 
int url_feof (URL_FILE *file)
 
size_t url_fread (void *ptr, size_t size, size_t nmemb, URL_FILE *file)
 
char * url_fgets (char *ptr, int size, URL_FILE *file)
 
void url_rewind (URL_FILE *file)
 
int main (int argc, char *argv[])
 

Variables

CURLMmulti_handle
 

Typedef Documentation

typedef struct fcurl_data URL_FILE

Definition at line 70 of file fopen.c.

Enumeration Type Documentation

Enumerator
CFTYPE_NONE 
CFTYPE_FILE 
CFTYPE_CURL 

Definition at line 54 of file fopen.c.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 458 of file fopen.c.

int url_fclose ( URL_FILE file)

Definition at line 266 of file fopen.c.

int url_feof ( URL_FILE file)

Definition at line 300 of file fopen.c.

char * url_fgets ( char *  ptr,
int  size,
URL_FILE file 
)

Definition at line 368 of file fopen.c.

URL_FILE * url_fopen ( char *  url,
const char *  operation 
)

Definition at line 210 of file fopen.c.

size_t url_fread ( void ptr,
size_t  size,
size_t  nmemb,
URL_FILE file 
)

Definition at line 323 of file fopen.c.

void url_rewind ( URL_FILE file)

Definition at line 421 of file fopen.c.

Variable Documentation

CURLM* multi_handle

Definition at line 81 of file fopen.c.