#include <gwenhywfar/db.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/types.h>
#include <gwenhywfar/urlfns.h>
Go to the source code of this file.
Typedefs | |
typedef struct GWEN_URL | GWEN_URL |
Functions | |
GWENHYWFAR_API void | GWEN_Url_Attach (GWEN_URL *st) |
GWENHYWFAR_API GWEN_URL * | GWEN_Url_dup (const GWEN_URL *st) |
GWENHYWFAR_API void | GWEN_Url_free (GWEN_URL *st) |
GWENHYWFAR_API GWEN_URL * | GWEN_Url_fromDb (GWEN_DB_NODE *db) |
GWENHYWFAR_API const char * | GWEN_Url_GetPassword (const GWEN_URL *el) |
GWENHYWFAR_API const char * | GWEN_Url_GetPath (const GWEN_URL *el) |
GWENHYWFAR_API int | GWEN_Url_GetPort (const GWEN_URL *el) |
GWENHYWFAR_API const char * | GWEN_Url_GetProtocol (const GWEN_URL *el) |
GWENHYWFAR_API const char * | GWEN_Url_GetServer (const GWEN_URL *el) |
GWENHYWFAR_API const char * | GWEN_Url_GetUserName (const GWEN_URL *el) |
GWENHYWFAR_API GWEN_DB_NODE * | GWEN_Url_GetVars (const GWEN_URL *el) |
GWENHYWFAR_API int | GWEN_Url_IsModified (const GWEN_URL *st) |
GWENHYWFAR_API void | GWEN_Url_List2_freeAll (GWEN_URL_LIST2 *stl) |
GWENHYWFAR_API GWEN_URL_LIST * | GWEN_Url_List_dup (const GWEN_URL_LIST *stl) |
GWENHYWFAR_API GWEN_URL * | GWEN_Url_new () |
GWENHYWFAR_API int | GWEN_Url_ReadDb (GWEN_URL *st, GWEN_DB_NODE *db) |
GWENHYWFAR_API void | GWEN_Url_SetModified (GWEN_URL *st, int i) |
GWENHYWFAR_API void | GWEN_Url_SetPassword (GWEN_URL *el, const char *d) |
GWENHYWFAR_API void | GWEN_Url_SetPath (GWEN_URL *el, const char *d) |
GWENHYWFAR_API void | GWEN_Url_SetPort (GWEN_URL *el, int d) |
GWENHYWFAR_API void | GWEN_Url_SetProtocol (GWEN_URL *el, const char *d) |
GWENHYWFAR_API void | GWEN_Url_SetServer (GWEN_URL *el, const char *d) |
GWENHYWFAR_API void | GWEN_Url_SetUserName (GWEN_URL *el, const char *d) |
GWENHYWFAR_API void | GWEN_Url_SetVars (GWEN_URL *el, GWEN_DB_NODE *d) |
GWENHYWFAR_API int | GWEN_Url_toDb (const GWEN_URL *st, GWEN_DB_NODE *db) |
GWENHYWFAR_API void GWEN_Url_Attach | ( | GWEN_URL * | st | ) |
Creates and returns a deep copy of thegiven object.
Definition at line 63 of file url.c.
References GWEN_DB_Group_dup(), and GWEN_Url_new().
Referenced by GWEN_Url_List_dup().
GWENHYWFAR_API void GWEN_Url_free | ( | GWEN_URL * | st | ) |
Destroys the given object.
Definition at line 37 of file url.c.
References GWEN_DB_Group_free(), GWEN_FREE_OBJECT, and GWEN_LIST_FINI.
Referenced by GWEN_ConfigMgr_Factory(), GWEN_Proxy_Connect(), GWEN_Url_fromString(), and GWEN_Url_List2__freeAll_cb().
GWENHYWFAR_API GWEN_URL* GWEN_Url_fromDb | ( | GWEN_DB_NODE * | db | ) |
Creates an object from the data in the given GWEN_DB_NODE
Definition at line 141 of file url.c.
References GWEN_Url_new(), and GWEN_Url_ReadDb().
GWENHYWFAR_API const char* GWEN_Url_GetPassword | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_Password
Definition at line 249 of file url.c.
Referenced by GWEN_Proxy_Connect().
GWENHYWFAR_API const char* GWEN_Url_GetPath | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_Path
GWENHYWFAR_API int GWEN_Url_GetPort | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_Port
Definition at line 194 of file url.c.
Referenced by GWEN_HttpSession_Init(), and GWEN_Proxy_Connect().
GWENHYWFAR_API const char* GWEN_Url_GetProtocol | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_Protocol
Definition at line 154 of file url.c.
Referenced by GWEN_ConfigMgr_Factory(), and GWEN_HttpSession_Init().
GWENHYWFAR_API const char* GWEN_Url_GetServer | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_Server
Definition at line 174 of file url.c.
Referenced by GWEN_HttpSession_Init(), and GWEN_Proxy_Connect().
GWENHYWFAR_API const char* GWEN_Url_GetUserName | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_UserName
Definition at line 229 of file url.c.
Referenced by GWEN_Proxy_Connect().
GWENHYWFAR_API GWEN_DB_NODE* GWEN_Url_GetVars | ( | const GWEN_URL * | el | ) |
Returns the property GWEN_URL_Vars
Definition at line 269 of file url.c.
Referenced by GWEN_Url_fromCommandString(), and GWEN_Url_fromString().
GWENHYWFAR_API int GWEN_Url_IsModified | ( | const GWEN_URL * | st | ) |
GWENHYWFAR_API void GWEN_Url_List2_freeAll | ( | GWEN_URL_LIST2 * | stl | ) |
Destroys all objects stored in the given LIST2 and the list itself
Definition at line 331 of file url.c.
References GWEN_Url_List2__freeAll_cb(), GWEN_Url_List2_ForEach(), and GWEN_Url_List2_free().
GWENHYWFAR_API GWEN_URL_LIST* GWEN_Url_List_dup | ( | const GWEN_URL_LIST * | stl | ) |
Definition at line 339 of file url.c.
References GWEN_Url_dup(), GWEN_Url_List_Add(), GWEN_Url_List_First(), GWEN_Url_List_new(), and GWEN_Url_List_Next().
GWENHYWFAR_API GWEN_URL* GWEN_Url_new | ( | ) |
Creates a new object.
Definition at line 26 of file url.c.
References GWEN_DB_Group_new(), GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_Url_dup(), GWEN_Url_fromCommandString(), GWEN_Url_fromDb(), and GWEN_Url_fromString().
GWENHYWFAR_API int GWEN_Url_ReadDb | ( | GWEN_URL * | st, | |
GWEN_DB_NODE * | db | |||
) |
Reads data from a GWEN_DB.
Definition at line 117 of file url.c.
References GWEN_DB_GetCharValue(), GWEN_DB_GetGroup(), GWEN_DB_GetIntValue(), GWEN_DB_Group_dup(), GWEN_DB_Group_free(), GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_Url_SetPassword(), GWEN_Url_SetPath(), GWEN_Url_SetPort(), GWEN_Url_SetProtocol(), GWEN_Url_SetServer(), GWEN_Url_SetUrl(), and GWEN_Url_SetUserName().
Referenced by GWEN_Url_fromDb().
GWENHYWFAR_API void GWEN_Url_SetModified | ( | GWEN_URL * | st, | |
int | i | |||
) |
GWENHYWFAR_API void GWEN_Url_SetPassword | ( | GWEN_URL * | el, | |
const char * | d | |||
) |
Set the property GWEN_URL_Password
Definition at line 255 of file url.c.
Referenced by GWEN_Url_fromString(), and GWEN_Url_ReadDb().
GWENHYWFAR_API void GWEN_Url_SetPath | ( | GWEN_URL * | el, | |
const char * | d | |||
) |
Set the property GWEN_URL_Path
Definition at line 215 of file url.c.
Referenced by GWEN_Url_fromCommandString(), GWEN_Url_fromString(), and GWEN_Url_ReadDb().
GWENHYWFAR_API void GWEN_Url_SetPort | ( | GWEN_URL * | el, | |
int | d | |||
) |
Set the property GWEN_URL_Port
Definition at line 200 of file url.c.
Referenced by GWEN_Url_ReadDb().
GWENHYWFAR_API void GWEN_Url_SetProtocol | ( | GWEN_URL * | el, | |
const char * | d | |||
) |
Set the property GWEN_URL_Protocol
Definition at line 160 of file url.c.
Referenced by GWEN_Url_fromString(), and GWEN_Url_ReadDb().
GWENHYWFAR_API void GWEN_Url_SetServer | ( | GWEN_URL * | el, | |
const char * | d | |||
) |
Set the property GWEN_URL_Server
Definition at line 180 of file url.c.
Referenced by GWEN_Url_fromString(), and GWEN_Url_ReadDb().
GWENHYWFAR_API void GWEN_Url_SetUserName | ( | GWEN_URL * | el, | |
const char * | d | |||
) |
Set the property GWEN_URL_UserName
Definition at line 235 of file url.c.
Referenced by GWEN_Url_fromString(), and GWEN_Url_ReadDb().
GWENHYWFAR_API void GWEN_Url_SetVars | ( | GWEN_URL * | el, | |
GWEN_DB_NODE * | d | |||
) |
Set the property GWEN_URL_Vars
Definition at line 275 of file url.c.
References GWEN_DB_Group_dup(), and GWEN_DB_Group_free().
Referenced by GWEN_Url_fromCommandString(), and GWEN_Url_fromString().
GWENHYWFAR_API int GWEN_Url_toDb | ( | const GWEN_URL * | st, | |
GWEN_DB_NODE * | db | |||
) |
Stores an object in the given GWEN_DB_NODE
Definition at line 87 of file url.c.
References GWEN_DB_AddGroupChildren(), GWEN_DB_FLAGS_DEFAULT, GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_GetGroup(), GWEN_DB_SetCharValue(), and GWEN_DB_SetIntValue().