/home/dcp1990/prog/fakedbfs/libfakedbfs/fields.c File Reference

#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <stdio.h>
#include <float.h>
#include <ctype.h>
#include <fakedbfs/fdbfsconfig.h>
#include <fakedbfs/fakedbfs.h>
#include <fakedbfs/debug.h>
#include <fakedbfs/fields.h>

Functions

int fdbfs_field_append (char *name, const char *fmtname, fields_t **th, fields_t **tc, enum DataType type, void *value, size_t len) const
int fdbfs_field_add_int (char *name, const char *fmtname, fields_t **th, fields_t **tc, int value) const
int fdbfs_field_add_string (char *name, const char *fmtname, fields_t **th, fields_t **tc, char *value) const
int fdbfs_field_add_image (char *name, const char *fmtname, fields_t **th, fields_t **tc, void *value, size_t sz) const
fields_tfdbfs_find_field_by_next (fields_t *h, fields_t *next)
 Searches for a field by its next member.
int fdbfs_fields_set_mime (char *mimetype, fields_t **th, fields_t **tc) const
fields_tfdbfs_find_field_by_name (fields_t *h, const char *name)
 Search for fields_t in a list by name.
fields_tfdbfs_find_field_by_ehead (fields_t *h, struct EnumHead *e)
 Search for fields_t in a list by enumhead.
fields_tfdbfs_find_field_by_ename (fields_t *h, const char *e)
 Search for fields_t in a list by enumhead name.

Function Documentation

int fdbfs_field_add_image char *  name,
const char *  fmtname,
fields_t **  th,
fields_t **  tc,
void *  value,
size_t  sz
const
 

int fdbfs_field_add_int char *  name,
const char *  fmtname,
fields_t **  th,
fields_t **  tc,
int  value
const
 

int fdbfs_field_add_string char *  name,
const char *  fmtname,
fields_t **  th,
fields_t **  tc,
char *  value
const
 

int fdbfs_field_append char *  name,
const char *  fmtname,
fields_t **  th,
fields_t **  tc,
enum DataType  type,
void *  value,
size_t  len
const
 

int fdbfs_fields_set_mime char *  mimetype,
fields_t **  th,
fields_t **  tc
const
 

fields_t* fdbfs_find_field_by_ehead fields_t h,
struct EnumHead e
 

Search for fields_t in a list by enumhead.

Parameters:
h List to traverse.
e EnumHead to search for.
Returns:
fields_t that matches, or NULL if not found.

fields_t* fdbfs_find_field_by_ename fields_t h,
const char *  e
 

Search for fields_t in a list by enumhead name.

Parameters:
h List to traverse.
e EnumHead name to search for.
Returns:
fields_t that matches, or NULL if not found.

fields_t* fdbfs_find_field_by_name fields_t h,
const char *  name
 

Search for fields_t in a list by name.

Parameters:
h List to traverse.
name Name to search for.
Returns:
fields_t that matches, or NULL if not found.

fields_t* fdbfs_find_field_by_next fields_t h,
fields_t next
 

Searches for a field by its next member.

Parameters:
h Head of list to search.
next Value to search for.
Returns:
Element found or NULL on not found.


Generated on Wed Apr 19 16:26:23 2006 for fakedbfs by  doxygen 1.4.6