rpmio/tget.c File Reference

#include "system.h"
#include <rpmio_internal.h>
#include <rpmmacro.h>
#include <rpmmessages.h>
#include <popt.h>
#include "debug.h"

Go to the source code of this file.

Defines

#define HTTPSPATH   "https://localhost/test.txt"
#define HTTPPATH   "http://localhost/test.txt"
#define FTPPATH   "ftp://localhost/test.txt"
#define DIRPATH   "/var/ftp/test.txt"

Functions

static void readFile (const char *path)
int main (int argc, const char *argv[])

Variables

static int _debug = 0
static char * httpspath = "https://localhost/test.txt"
static char * httppath = "http://localhost/test.txt"
static char * ftppath = "ftp://localhost/test.txt"
static char * dirpath = "/var/ftp/test.txt"
static struct poptOption optionsTable []


Define Documentation

#define DIRPATH   "/var/ftp/test.txt"

Definition at line 16 of file tget.c.

#define FTPPATH   "ftp://localhost/test.txt"

Definition at line 15 of file tget.c.

#define HTTPPATH   "http://localhost/test.txt"

Definition at line 14 of file tget.c.

#define HTTPSPATH   "https://localhost/test.txt"

Definition at line 13 of file tget.c.


Function Documentation

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

Definition at line 52 of file tget.c.

References _av_debug, _dav_debug, _debug, _ftp_debug, dirpath, ftppath, httppath, httpspath, optionsTable, readFile(), rpmIncreaseVerbosity, and urlFreeCache().

static void readFile ( const char *  path  )  [static]

Definition at line 22 of file tget.c.

References Fclose(), Fopen(), and Fread().


Variable Documentation

int _debug = 0 [static]

Definition at line 10 of file tget.c.

char* dirpath = "/var/ftp/test.txt" [static]

Definition at line 20 of file tget.c.

char* ftppath = "ftp://localhost/test.txt" [static]

Definition at line 19 of file tget.c.

char* httppath = "http://localhost/test.txt" [static]

Definition at line 18 of file tget.c.

char* httpspath = "https://localhost/test.txt" [static]

Definition at line 17 of file tget.c.

struct poptOption optionsTable[] [static]

Initial value:

 {
 { "debug", 'd', POPT_ARG_VAL,  &_debug, -1,            NULL, NULL },
 { "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
         "debug protocol data stream" , NULL},
 { "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
         "debug rpmio I/O" , NULL},
 { "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
         "debug URL cache handling" , NULL},
 { "verbose", 'v', 0, 0, 'v',                           NULL, NULL },
  POPT_AUTOHELP
  POPT_TABLEEND
}

Definition at line 38 of file tget.c.


Generated on Tue Feb 19 23:28:33 2008 for rpm by  doxygen 1.5.1