Classes | Defines | 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>
Include dependency graph for fopen.c:

Go to the source code of this file.

Classes

struct  fcurl_data

Defines

#define FGETSFILE   "fgets.test"
#define FREADFILE   "fread.test"
#define REWINDFILE   "rewind.test"

Typedefs

typedef struct fcurl_data URL_FILE

Enumerations

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

Functions

static int fill_buffer (URL_FILE *file, size_t want)
int main (int argc, char *argv[])
int url_fclose (URL_FILE *file)
int url_feof (URL_FILE *file)
char * url_fgets (char *ptr, size_t size, URL_FILE *file)
URL_FILEurl_fopen (const char *url, const char *operation)
size_t url_fread (void *ptr, size_t size, size_t nmemb, URL_FILE *file)
void url_rewind (URL_FILE *file)
static int use_buffer (URL_FILE *file, size_t want)
static size_t write_callback (char *buffer, size_t size, size_t nitems, void *userp)

Variables

CURLMmulti_handle

Define Documentation

#define FGETSFILE   "fgets.test"

Definition at line 449 of file fopen.c.

#define FREADFILE   "fread.test"

Definition at line 450 of file fopen.c.

#define REWINDFILE   "rewind.test"

Definition at line 451 of file fopen.c.


Typedef Documentation

typedef struct fcurl_data URL_FILE

Definition at line 80 of file fopen.c.


Enumeration Type Documentation

Enumerator:
CFTYPE_NONE 
CFTYPE_FILE 
CFTYPE_CURL 

Definition at line 60 of file fopen.c.


Function Documentation

static int fill_buffer ( URL_FILE file,
size_t  want 
) [static]

Definition at line 128 of file fopen.c.

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

Definition at line 456 of file fopen.c.

int url_fclose ( URL_FILE file)

Definition at line 283 of file fopen.c.

int url_feof ( URL_FILE file)

Definition at line 312 of file fopen.c.

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

Definition at line 374 of file fopen.c.

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

Definition at line 232 of file fopen.c.

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

Definition at line 334 of file fopen.c.

void url_rewind ( URL_FILE file)

Definition at line 422 of file fopen.c.

static int use_buffer ( URL_FILE file,
size_t  want 
) [static]

Definition at line 211 of file fopen.c.

static size_t write_callback ( char *  buffer,
size_t  size,
size_t  nitems,
void *  userp 
) [static]

Definition at line 94 of file fopen.c.


Variable Documentation

Definition at line 91 of file fopen.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08