jigdo API

job/jigdo-io-test.cc File Reference

#include <config.h>
#include <limits.h>
#include <string.h>
#include <makeimagedl.hh>
#include <md5sum.hh>
#include <url-mapping.hh>
#include <jigdo-io.hh>
#include <jigdo-io.cc>

Defines

#define DEBUG   1

Typedefs

typedef MakeImageDl::Child Child
typedef map< string, const char * > MapWww

Functions

MemData * memData (Child *c)
MemData * memData (MakeImageDl &m, const char *url)
void output (MakeImageDl &m, const char *url, size_t n=UINT_MAX)
void idle ()
void escapedChar (string *o, byte c)
string escapedString (const string &s)
void loggerPut (const string &unitName, unsigned char unitNameLen, const char *format, int args, const Subst arg[])
void loggerInit ()
void testSimple ()
void testNoMD5 ()
void testMinimal ()
void testLoop ()
void testFork ()
void testBetween ()
int main (int argc, char *argv[])

Variables

GMainLoop * gLoop = 0
MapWww www
const char *const hexDigits = "0123456789abcdef"
bool jigdoIoEnabled = false
string imgSectLogged

Define Documentation

#define DEBUG   1


Typedef Documentation

typedef map<string, const char*> MapWww [static]


Function Documentation

void @36::escapedChar ( string *  o,
byte  c 
) [static]

Referenced by escapedString(), and main().

string @36::escapedString ( const string &  s  )  [inline, static]

void @36::idle (  )  [static]

void @36::loggerInit (  )  [static]

void @36::loggerPut ( const string &  unitName,
unsigned char  unitNameLen,
const char *  format,
int  args,
const Subst  arg[] 
) [static]

References Logger::defaultPut(), and Subst::subst().

Referenced by loggerInit().

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

MemData* @36::memData ( MakeImageDl m,
const char *  url 
) [static]

MemData* @36::memData ( Child c  )  [inline, static]

void @36::output ( MakeImageDl m,
const char *  url,
size_t  n = UINT_MAX 
) [inline, static]

References memData().

void testBetween (  ) 

References Assert, escapedString(), imgSectLogged, msg, output, and www.

Referenced by main().

void testFork (  ) 

References Assert, escapedString(), imgSectLogged, msg, output, and www.

Referenced by main().


Variable Documentation

const byte* cur

Referenced by printBlockSums().

const byte* dataEnd

GMainLoop* gLoop = 0 [static]

Referenced by main().

const char* const hexDigits = "0123456789abcdef" [static]

Referenced by escapedChar(), and toHex().

bool jigdoIoEnabled = false [static]

string locVal


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6