Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

dime.c File Reference


Detailed Description

Dime parser / creator.

Author:
Jeroen Asselman
Date:
2004

#include "common.h"

Data Structures

struct  dime_record_s
struct  dime_record_header_s

Defines

#define DIME_VERSION   0x01
#define HEADER_SIZE   12

Typedefs

typedef dime_record_s dime_record_t
typedef dime_record_header_s dime_record_header_t

Functions

size_t dime_ceil (size_t value)
 Makes a value a multiple of 4.

char * dime_create_record_header (dime_record_header_t *dime_record_header)
 Create a dime record header.

char * dime_create_record (dime_record_t *dime_record, gboolean firstrecord, gboolean lastrecord)
gboolean dime_parse_record_header (char *dime_record, dime_record_header_t *dime_record_header)
gboolean dime_parse_records (char *data)


Define Documentation

#define DIME_VERSION   0x01
 

#define HEADER_SIZE   12
 


Typedef Documentation

typedef struct dime_record_header_s dime_record_header_t
 

typedef struct dime_record_s dime_record_t
 


Function Documentation

size_t dime_ceil size_t  value  ) 
 

Makes a value a multiple of 4.

char* dime_create_record dime_record_t dime_record,
gboolean  firstrecord,
gboolean  lastrecord
 

char* dime_create_record_header dime_record_header_t dime_record_header  ) 
 

Create a dime record header.

gboolean dime_parse_record_header char *  dime_record,
dime_record_header_t dime_record_header
 

gboolean dime_parse_records char *  data  ) 
 


Generated on Sun Feb 12 10:49:59 2006 for Gtk-Gnutella by doxygen 1.3.6