mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 10:22:34 +01:00
WUtil: Added comment about values returned by API functions
This is mainly to be consistent with what's done in the rest of the file, but it is better to have it there that nowhere at all anyway...
This commit is contained in:
committed by
Carlos R. Mafra
parent
74c17bffae
commit
98e3c7e347
@@ -193,6 +193,8 @@ void __wmessage(const char *func, const char *file, int line, int type, const ch
|
|||||||
|
|
||||||
/* ---[ WINGs/findfile.c ]------------------------------------------------ */
|
/* ---[ WINGs/findfile.c ]------------------------------------------------ */
|
||||||
|
|
||||||
|
/* For the 4 function below, you have to free the returned string when you no longer need it */
|
||||||
|
|
||||||
char* wfindfile(const char *paths, const char *file);
|
char* wfindfile(const char *paths, const char *file);
|
||||||
|
|
||||||
char* wfindfileinlist(char *const *path_list, const char *file);
|
char* wfindfileinlist(char *const *path_list, const char *file);
|
||||||
@@ -813,10 +815,13 @@ Bool WMWritePropListToFile(WMPropList *plist, const char *path);
|
|||||||
|
|
||||||
/* ---[ WINGs/userdefaults.c ]-------------------------------------------- */
|
/* ---[ WINGs/userdefaults.c ]-------------------------------------------- */
|
||||||
|
|
||||||
|
/* don't free the returned string */
|
||||||
char* wusergnusteppath(void);
|
char* wusergnusteppath(void);
|
||||||
|
|
||||||
|
/* Free the returned string when you no longer need it */
|
||||||
char* wdefaultspathfordomain(const char *domain);
|
char* wdefaultspathfordomain(const char *domain);
|
||||||
|
|
||||||
|
/* Free the returned string when you no longer need it */
|
||||||
char* wglobaldefaultspathfordomain(const char *domain);
|
char* wglobaldefaultspathfordomain(const char *domain);
|
||||||
|
|
||||||
WMUserDefaults* WMGetStandardUserDefaults(void);
|
WMUserDefaults* WMGetStandardUserDefaults(void);
|
||||||
@@ -841,6 +846,7 @@ void WMSetUDObjectForKey(WMUserDefaults *database, WMPropList *object,
|
|||||||
|
|
||||||
void WMRemoveUDObjectForKey(WMUserDefaults *database, const char *defaultName);
|
void WMRemoveUDObjectForKey(WMUserDefaults *database, const char *defaultName);
|
||||||
|
|
||||||
|
/* Returns a reference. Do not free it! */
|
||||||
char* WMGetUDStringForKey(WMUserDefaults *database, const char *defaultName);
|
char* WMGetUDStringForKey(WMUserDefaults *database, const char *defaultName);
|
||||||
|
|
||||||
int WMGetUDIntegerForKey(WMUserDefaults *database, const char *defaultName);
|
int WMGetUDIntegerForKey(WMUserDefaults *database, const char *defaultName);
|
||||||
|
|||||||
Reference in New Issue
Block a user