#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | Q_DB |
struct | Q_DBRESULT |
struct | Q_ENTRY |
struct | Q_HASHARR |
struct | Q_HASHTBL |
struct | Q_LOG |
struct | Q_NLOBJ |
struct | Q_OBJ |
struct | Q_OBSTACK |
struct | Q_QUEUE |
Defines | |
#define | _Q_HASHARR_DEF_VALUESIZE |
#define | _Q_HASHARR_MAX_KEYSIZE |
#define | _Q_VERSION |
FunctionsTitleTestFour | |
char * | qCgiRequestGetQueryString (const char *query_type) |
Q_ENTRY * | qCgiRequestParse (Q_ENTRY *request) |
Q_ENTRY * | qCgiRequestParseCookies (Q_ENTRY *request) |
Q_ENTRY * | qCgiRequestParseOption (bool filemode, const char *basepath, int clearold) |
Q_ENTRY * | qCgiRequestParseQueries (Q_ENTRY *request, const char *method) |
int | qCgiResponseDownload (Q_ENTRY *request, const char *filepath, const char *mimetype) |
void | qCgiResponseError (Q_ENTRY *request, char *format,...) |
const char * | qCgiResponseGetContentType (Q_ENTRY *request) |
bool | qCgiResponseRedirect (Q_ENTRY *request, const char *uri) |
bool | qCgiResponseRemoveCookie (Q_ENTRY *request, const char *name, const char *path, const char *domain, bool secure) |
bool | qCgiResponseSetContentType (Q_ENTRY *request, const char *mimetype) |
bool | qCgiResponseSetCookie (Q_ENTRY *request, const char *name, const char *value, int expire, const char *path, const char *domain, bool secure) |
Q_ENTRY * | qConfigParseFile (Q_ENTRY *config, const char *filepath, char sepchar) |
Q_ENTRY * | qConfigParseStr (Q_ENTRY *config, const char *str, char sepchar) |
int | qCountRead (const char *filepath) |
bool | qCountSave (const char *filepath, int number) |
int | qCountUpdate (const char *filepath, int number) |
bool | qDbBeginTran (Q_DB *db) |
bool | qDbClose (Q_DB *db) |
bool | qDbCommit (Q_DB *db) |
bool | qDbEndTran (Q_DB *db, bool commit) |
Q_DBRESULT * | qDbExecuteQuery (Q_DB *db, const char *query) |
Q_DBRESULT * | qDbExecuteQueryf (Q_DB *db, const char *format,...) |
int | qDbExecuteUpdate (Q_DB *db, const char *query) |
int | qDbExecuteUpdatef (Q_DB *db, const char *format,...) |
bool | qDbFree (Q_DB *db) |
int | qDbGetCols (Q_DBRESULT *result) |
const char * | qDbGetError (Q_DB *db, unsigned int *errorno) |
int | qDbGetInt (Q_DBRESULT *result, const char *field) |
int | qDbGetIntAt (Q_DBRESULT *result, int idx) |
bool | qDbGetLastConnStatus (Q_DB *db) |
int | qDbGetRow (Q_DBRESULT *result) |
int | qDbGetRows (Q_DBRESULT *result) |
const char * | qDbGetStr (Q_DBRESULT *result, const char *field) |
const char * | qDbGetStrAt (Q_DBRESULT *result, int idx) |
Q_DB * | qDbInit (const char *dbtype, const char *addr, int port, const char *database, const char *username, const char *password, bool autocommit) |
bool | qDbOpen (Q_DB *db) |
bool | qDbPing (Q_DB *db) |
bool | qDbResultFree (Q_DBRESULT *result) |
bool | qDbResultNext (Q_DBRESULT *result) |
bool | qDbRollback (Q_DB *db) |
bool | qDbSetFetchType (Q_DB *db, bool use) |
Q_ENTRY * | qDecodeQueryString (Q_ENTRY *entry, const char *query, char equalchar, char sepchar, int *count) |
const char * | qDecoderVersion (void) |
char * | qDecodeUrl (char *str) |
char * | qEncodeUrl (const char *str) |
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) |
bool | qFileExist (const char *filepath) |
char * | qFileGetDir (const char *filepath) |
char * | qFileGetExt (const char *filepath) |
char * | qFileGetName (const char *filepath) |
off_t | qFileGetSize (const char *filepath) |
void * | qFileLoad (const char *filepath, size_t *nbytes) |
bool | qFileLock (int fd) |
void * | qFileRead (FILE *fp, size_t *nbytes) |
char * | qFileReadLine (FILE *fp) |
ssize_t | qFileSave (const char *filepath, const void *buf, size_t size, bool append) |
off_t | qFileSend (int outfd, int infd, off_t nbytes) |
bool | qFileUnlock (int fd) |
bool | qHasharrClear (Q_HASHARR *tbl) |
void * | qHasharrGet (Q_HASHARR *tbl, const char *key, int *size) |
const char * | qHasharrGetFirstKey (Q_HASHARR *tbl, int *idx) |
int | qHasharrGetInt (Q_HASHARR *tbl, const char *key) |
const char * | qHasharrGetNextKey (Q_HASHARR *tbl, int *idx) |
char * | qHasharrGetStr (Q_HASHARR *tbl, const char *key) |
int | qHasharrInit (Q_HASHARR *tbl, size_t memsize) |
bool | qHasharrPrint (Q_HASHARR *tbl, FILE *out) |
bool | qHasharrPut (Q_HASHARR *tbl, const char *key, const void *value, int size) |
bool | qHasharrPutInt (Q_HASHARR *tbl, const char *key, int value) |
bool | qHasharrPutStr (Q_HASHARR *tbl, const char *key, const char *value) |
bool | qHasharrRemove (Q_HASHARR *tbl, const char *key) |
size_t | qHasharrSize (int max) |
bool | qHasharrStatus (Q_HASHARR *tbl, int *used, int *max) |
unsigned int | qHashFnv32 (unsigned int max, const void *data, size_t nbytes) |
unsigned char * | qHashMd5 (const void *data, size_t nbytes) |
char * | qHashMd5File (const char *filepath, size_t *nbytes) |
char * | qHashMd5Str (const void *data, size_t nbytes) |
bool | qHashtblFree (Q_HASHTBL *tbl) |
void * | qHashtblGet (Q_HASHTBL *tbl, const char *key, int *size) |
const char * | qHashtblGetFirstKey (Q_HASHTBL *tbl, int *idx) |
int | qHashtblGetInt (Q_HASHTBL *tbl, const char *key) |
const char * | qHashtblGetNextKey (Q_HASHTBL *tbl, int *idx) |
char * | qHashtblGetStr (Q_HASHTBL *tbl, const char *key) |
Q_HASHTBL * | qHashtblInit (int max) |
bool | qHashtblPrint (Q_HASHTBL *tbl, FILE *out, bool showvalue) |
bool | qHashtblPut (Q_HASHTBL *tbl, const char *key, const void *value, int size) |
bool | qHashtblPutInt (Q_HASHTBL *tbl, const char *key, int value) |
bool | qHashtblPutStr (Q_HASHTBL *tbl, const char *key, const char *value) |
bool | qHashtblRemove (Q_HASHTBL *tbl, const char *key) |
bool | qHashtblStatus (Q_HASHTBL *tbl, int *used, int *max) |
bool | qHtmlIsEmail (const char *email) |
bool | qHtmlIsUrl (const char *url) |
bool | qHtmlPrintf (FILE *stream, int mode, const char *format,...) |
bool | qHtmlPuts (FILE *stream, int mode, char *buf) |
bool | qLog (Q_LOG *log, const char *format,...) |
bool | qLogClose (Q_LOG *log) |
bool | qLogFlush (Q_LOG *log) |
Q_LOG * | qLogOpen (const char *logbase, const char *filenameformat, int rotateinterval, bool flush) |
bool | qLogSetConsole (Q_LOG *log, bool consoleout) |
void * | qObstackFinish (Q_OBSTACK *obstack) |
bool | qObstackFree (Q_OBSTACK *obstack) |
void * | qObstackGetFinal (Q_OBSTACK *obstack) |
int | qObstackGetNum (Q_OBSTACK *obstack) |
size_t | qObstackGetSize (Q_OBSTACK *obstack) |
bool | qObstackGrow (Q_OBSTACK *obstack, const void *object, size_t size) |
bool | qObstackGrowStr (Q_OBSTACK *obstack, const char *str) |
bool | qObstackGrowStrf (Q_OBSTACK *obstack, const char *format,...) |
Q_OBSTACK * | qObstackInit (void) |
bool | qQueueClear (Q_QUEUE *queue) |
int | qQueueInit (Q_QUEUE *queue, void *datamem, size_t datamemsize, size_t objsize) |
bool | qQueuePopFirst (Q_QUEUE *queue, void *object) |
bool | qQueuePopLast (Q_QUEUE *queue, void *object) |
bool | qQueuePush (Q_QUEUE *queue, const void *object) |
size_t | qQueueSize (int max, size_t objsize) |
bool | qQueueStatus (Q_QUEUE *queue, int *used, int *max) |
bool | qSedFile (Q_ENTRY *entry, const char *filepath, FILE *fpout) |
bool | qSedStr (Q_ENTRY *entry, const char *srcstr, FILE *fpout) |
bool | qSemCheck (int semid, int semno) |
bool | qSemEnter (int semid, int semno) |
bool | qSemEnterForce (int semid, int semno, int maxwaitms, bool *forceflag) |
bool | qSemEnterNowait (int semid, int semno) |
bool | qSemFree (int semid) |
int | qSemGetId (const char *keyfile, int keyid) |
int | qSemInit (const char *keyfile, int keyid, int nsems, bool ifexistdestroy) |
bool | qSemLeave (int semid, int semno) |
bool | qSessionDestroy (Q_ENTRY *session) |
time_t | qSessionGetCreated (Q_ENTRY *session) |
const char * | qSessionGetId (Q_ENTRY *session) |
Q_ENTRY * | qSessionInit (Q_ENTRY *request, const char *dirpath) |
bool | qSessionSave (Q_ENTRY *session) |
bool | qSessionSetTimeout (Q_ENTRY *session, time_t seconds) |
bool | qShmFree (int shmid) |
void * | qShmGet (int shmid) |
int | qShmGetId (const char *keyfile, int keyid) |
int | qShmInit (const char *keyfile, int keyid, size_t size, bool ifexistdestroy) |
bool | qSocketClose (int sockfd) |
ssize_t | qSocketGets (char *str, int sockfd, size_t nbytes, int timeoutms) |
int | qSocketOpen (const char *hostname, int port) |
ssize_t | qSocketPrintf (int sockfd, const char *format,...) |
ssize_t | qSocketPuts (int sockfd, const char *str) |
ssize_t | qSocketRead (void *binary, int sockfd, size_t nbytes, int timeoutms) |
off_t | qSocketSaveIntoFile (int fd, int sockfd, off_t nbytes, int timeoutms) |
ssize_t | qSocketSaveIntoMemory (char *mem, int sockfd, size_t nbytes, int timeoutms) |
off_t | qSocketSendfile (int sockfd, int fd, off_t offset, off_t nbytes) |
int | qSocketWaitReadable (int sockfd, int timeoutms) |
int | qSocketWaitWritable (int sockfd, int timeoutms) |
ssize_t | qSocketWrite (int sockfd, const void *binary, size_t nbytes) |
char * | qStrCaseStr (const char *s1, const char *s2) |
char * | qStrCatf (char *str, const char *format,...) |
char * | qStrCommaNumber (int number) |
char * | qStrConvEncoding (const char *fromstr, const char *fromcode, const char *tocode, float mag) |
char * | qStrCpy (char *dst, size_t dstsize, const char *src, size_t nbytes) |
char * | qStrDupBetween (const char *str, const char *start, const char *end) |
bool | qStrIsAlnum (const char *str) |
char * | qStrLower (char *str) |
char * | qStrReplace (const char *mode, char *srcstr, const char *tokstr, const char *word) |
char * | qStrRev (char *str) |
char * | qStrTok (char *str, const char *token, char *retstop) |
Q_ENTRY * | qStrTokenizer (char *str, const char *delimiters) |
char * | qStrTrim (char *str) |
char * | qStrTrimTail (char *str) |
char * | qStrUnchar (char *str, char head, char tail) |
char * | qStrUnique (const char *seed) |
char * | qStrUpper (char *str) |
char * | qSysCmd (const char *cmd) |
const char * | qSysGetEnv (const char *envname, const char *nullstr) |
const char * | qTimeGetGmtStaticStr (time_t utctime) |
char * | qTimeGetGmtStr (time_t utctime) |
char * | qTimeGetGmtStrf (char *buf, int size, time_t utctime, const char *format) |
const char * | qTimeGetLocalStaticStr (time_t utctime) |
char * | qTimeGetLocalStr (time_t utctime) |
char * | qTimeGetLocalStrf (char *buf, int size, time_t utctime, const char *format) |
time_t | qTimeParseGmtStr (const char *gmtstr) |
Definition in file qDecoder.h.