#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "qDecoder.h"
#include "qInternal.h"
Go to the source code of this file.
FunctionsTitleTestFour | |
const Q_NLOBJ * | qEntryFirst (Q_ENTRY *entry) |
bool | qEntryFree (Q_ENTRY *entry) |
const void * | qEntryGet (Q_ENTRY *entry, const char *name, int *size) |
const void * | qEntryGetCase (Q_ENTRY *entry, const char *name, int *size) |
int | qEntryGetInt (Q_ENTRY *entry, const char *name) |
int | qEntryGetIntCase (Q_ENTRY *entry, const char *name) |
int | qEntryGetIntf (Q_ENTRY *entry, char *format,...) |
int | qEntryGetIntLast (Q_ENTRY *entry, const char *name) |
int | qEntryGetIntNext (Q_ENTRY *entry, const char *name) |
int | qEntryGetIntNextCase (Q_ENTRY *entry, const char *name) |
const void * | qEntryGetLast (Q_ENTRY *entry, const char *name, int *size) |
const void * | qEntryGetNext (Q_ENTRY *entry, const char *name, int *size) |
const void * | qEntryGetNextCase (Q_ENTRY *entry, const char *name, int *size) |
int | qEntryGetNo (Q_ENTRY *entry, const char *name) |
int | qEntryGetNum (Q_ENTRY *entry) |
const char * | qEntryGetStr (Q_ENTRY *entry, const char *name) |
const char * | qEntryGetStrCase (Q_ENTRY *entry, const char *name) |
const char * | qEntryGetStrf (Q_ENTRY *entry, char *format,...) |
const char * | qEntryGetStrLast (Q_ENTRY *entry, const char *name) |
const char * | qEntryGetStrNext (Q_ENTRY *entry, const char *name) |
const char * | qEntryGetStrNextCase (Q_ENTRY *entry, const char *name) |
Q_ENTRY * | qEntryInit (void) |
int | qEntryLoad (Q_ENTRY *entry, const char *filepath, char sepchar, bool decode) |
const Q_NLOBJ * | qEntryNext (Q_ENTRY *entry) |
bool | qEntryPrint (Q_ENTRY *entry, FILE *out, bool print_object) |
bool | qEntryPut (Q_ENTRY *entry, const char *name, const void *object, int size, bool update) |
bool | qEntryPutInt (Q_ENTRY *entry, const char *name, int num, bool update) |
bool | qEntryPutStr (Q_ENTRY *entry, const char *name, const char *str, bool update) |
bool | qEntryPutStrf (Q_ENTRY *entry, const char *name, bool update, char *format,...) |
int | qEntryRemove (Q_ENTRY *entry, const char *name) |
bool | qEntryReverse (Q_ENTRY *entry) |
bool | qEntrySave (Q_ENTRY *entry, const char *filepath, char sepchar, bool encode) |
[Code sample - String] // sample data struct MY_OBJ *my_obj = getNewMyOjb(); // sample object char *my_str = "hello"; // sample string int my_int = 1; // sample integer // store into linked-list Q_ENTRY *entries = qEntryInit(); entries = qEntryPut(entries, "obj", (void*)my_obj, sizeof(struct MY_OBJ), true); entries = qEntryPutStr(entries, "obj", my_str, true); entries = qEntryPutInt(entries, "obj", my_int, true); // print out qEntryPrint(entries, stdout, false); // free object qEntryFree(entries); [Result]
Definition in file qEntry.c.