9 #include <gwenhywfar/misc.h> 10 #include <gwenhywfar/db.h> 11 #include <gwenhywfar/debug.h> 16 #include <gwenhywfar/types.h> 17 #include <gwenhywfar/urlfns.h> 44 if (--(st->_usage)==0) {
74 st->protocol=strdup(d->protocol);
76 st->server=strdup(d->server);
79 st->path=strdup(d->path);
81 st->userName=strdup(d->userName);
83 st->password=strdup(d->password);
89 st->url=strdup(d->url);
177 st->protocol=strdup(d);
199 st->server=strdup(d);
260 st->userName=strdup(d);
282 st->password=strdup(d);
338 return st->_modified;
void GWEN_Url_free(GWEN_URL *st)
const char * GWEN_Url_GetUrl(const GWEN_URL *st)
#define GWEN_DB_FLAGS_OVERWRITE_VARS
#define GWEN_LIST2_FUNCTIONS(t, pr)
struct GWEN_DB_NODE GWEN_DB_NODE
void GWEN_DB_Group_free(GWEN_DB_NODE *n)
GWEN_URL * GWEN_Url_List_Next(const GWEN_URL *element)
#define GWEN_FREE_OBJECT(varname)
void GWEN_Url_List_Add(GWEN_URL *element, GWEN_URL_LIST *list)
const char * GWEN_Url_GetProtocol(const GWEN_URL *st)
int GWEN_Url_GetPort(const GWEN_URL *st)
GWEN_URL * GWEN_Url_List2_ForEach(GWEN_URL_LIST2 *list, GWEN_URL_LIST2_FOREACH func, void *user_data)
int GWEN_Url_IsModified(const GWEN_URL *st)
void GWEN_Url_SetProtocol(GWEN_URL *st, const char *d)
void GWEN_Url_SetServer(GWEN_URL *st, const char *d)
GWEN_URL_LIST * GWEN_Url_List_new()
GWEN_URL * GWEN_Url_List_First(const GWEN_URL_LIST *l)
#define GWEN_NEW_OBJECT(typ, varname)
GWEN_URL_LIST * GWEN_Url_List_dup(const GWEN_URL_LIST *stl)
int GWEN_Url_toDb(const GWEN_URL *st, GWEN_DB_NODE *db)
void GWEN_Url_List2_freeAll(GWEN_URL_LIST2 *stl)
void GWEN_Url_SetUserName(GWEN_URL *st, const char *d)
void GWEN_Url_SetPassword(GWEN_URL *st, const char *d)
const char * GWEN_DB_GetCharValue(GWEN_DB_NODE *n, const char *path, int idx, const char *defVal)
GWEN_URL * GWEN_Url_dup(const GWEN_URL *d)
GWEN_DB_NODE * GWEN_DB_Group_dup(const GWEN_DB_NODE *n)
GWEN_URL * GWEN_Url_new(void)
GWEN_DB_NODE * GWEN_DB_GetGroup(GWEN_DB_NODE *n, uint32_t flags, const char *path)
void GWEN_Url_List2_free(GWEN_URL_LIST2 *l)
const char * GWEN_Url_GetServer(const GWEN_URL *st)
int GWEN_Url_ReadDb(GWEN_URL *st, GWEN_DB_NODE *db)
void GWEN_Url_SetModified(GWEN_URL *st, int i)
struct GWEN_URL_LIST2 GWEN_URL_LIST2
const char * GWEN_Url_GetPassword(const GWEN_URL *st)
int GWEN_DB_SetCharValue(GWEN_DB_NODE *n, uint32_t flags, const char *path, const char *val)
void GWEN_Url_SetPath(GWEN_URL *st, const char *d)
const char * GWEN_Url_GetUserName(const GWEN_URL *st)
void GWEN_Url_SetPort(GWEN_URL *st, int d)
void GWEN_Url_SetUrl(GWEN_URL *st, const char *d)
#define GWEN_LIST_INIT(t, element)
GWEN_URL * GWEN_Url_fromDb(GWEN_DB_NODE *db)
int GWEN_DB_GetIntValue(GWEN_DB_NODE *n, const char *path, int idx, int defVal)
GWEN_DB_NODE * GWEN_Url_GetVars(const GWEN_URL *st)
void GWEN_Url_SetVars(GWEN_URL *st, GWEN_DB_NODE *d)
GWEN_DB_NODE * GWEN_DB_Group_new(const char *name)
int GWEN_DB_SetIntValue(GWEN_DB_NODE *n, uint32_t flags, const char *path, int val)
#define GWEN_LIST_FUNCTIONS(t, pr)
int GWEN_DB_AddGroupChildren(GWEN_DB_NODE *n, GWEN_DB_NODE *nn)
void GWEN_Url_Attach(GWEN_URL *st)
#define GWEN_PATH_FLAGS_NAMEMUSTEXIST
#define GWEN_LIST_FINI(t, element)
const char * GWEN_Url_GetPath(const GWEN_URL *st)
#define GWEN_DB_FLAGS_DEFAULT
static GWEN_URL * GWEN_Url_List2__freeAll_cb(GWEN_URL *st, GWEN_UNUSED void *user_data)