The qDecoder Project

_Q_ENTRY Struct Reference

Structure for linked-list data structure. More...


Data Fields

Q_MUTEX_T qmutex
int num
size_t size
Q_NLOBJ_Tfirst
Q_NLOBJ_Tlast
void(* lock )(Q_ENTRY *entry)
void(* unlock )(Q_ENTRY *entry)
bool(* put )(Q_ENTRY *entry, const char *name, const void *data, size_t size, bool replace)
bool(* putStr )(Q_ENTRY *entry, const char *name, const char *str, bool replace)
bool(* putStrf )(Q_ENTRY *entry, bool replace, const char *name, const char *format,...)
bool(* putStrParsed )(Q_ENTRY *entry, const char *name, const char *str, bool replace)
bool(* putInt )(Q_ENTRY *entry, const char *name, int num, bool replace)
void *(* get )(Q_ENTRY *entry, const char *name, size_t *size, bool newmem)
void *(* getCase )(Q_ENTRY *entry, const char *name, size_t *size, bool newmem)
void *(* getLast )(Q_ENTRY *entry, const char *name, size_t *size, bool newmem)
char *(* getStr )(Q_ENTRY *entry, const char *name, bool newmem)
char *(* getStrf )(Q_ENTRY *entry, bool newmem, const char *namefmt,...)
char *(* getStrCase )(Q_ENTRY *entry, const char *name, bool newmem)
char *(* getStrLast )(Q_ENTRY *entry, const char *name, bool newmem)
int(* getInt )(Q_ENTRY *entry, const char *name)
int(* getIntCase )(Q_ENTRY *entry, const char *name)
int(* getIntLast )(Q_ENTRY *entry, const char *name)
bool(* getNext )(Q_ENTRY *entry, Q_NLOBJ_T *obj, const char *name, bool newmem)
int(* remove )(Q_ENTRY *entry, const char *name)
int(* getNum )(Q_ENTRY *entry)
int(* getNo )(Q_ENTRY *entry, const char *name)
char *(* parseStr )(Q_ENTRY *entry, const char *str)
void *(* merge )(Q_ENTRY *entry, size_t *size)
bool(* truncate )(Q_ENTRY *entry)
bool(* save )(Q_ENTRY *entry, const char *filepath, char sepchar, bool encode)
int(* load )(Q_ENTRY *entry, const char *filepath, char sepchar, bool decode)
bool(* reverse )(Q_ENTRY *entry)
bool(* print )(Q_ENTRY *entry, FILE *out, bool print_data)
bool(* free )(Q_ENTRY *entry)


Detailed Description

Structure for linked-list data structure.


Field Documentation

Q_MUTEX_T _Q_ENTRY::qmutex

only used if compiled with --enable-threadsafe option

int _Q_ENTRY::num

number of objects

size_t _Q_ENTRY::size

total size of data objects, does not include name size

Q_NLOBJ_T* _Q_ENTRY::first

first object pointer

Q_NLOBJ_T* _Q_ENTRY::last

last object pointer


The documentation for this struct was generated from the following file:

Copyright (c) 2000-2010 The qDecoder Project