diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-12 21:02:41 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-12 21:02:41 +0000 |
| commit | fd5784c082de724b9ccde01977eac1e27a121201 (patch) | |
| tree | 8cbd1ed25abceadd0a26a76cd32a10e5b3c43592 /cwmcc/prop.h | |
| parent | 4d510a8a922c90a2076e2a222e499f033e627eb8 (diff) | |
proper cwmcc_ prefixing.
add gulong *num and gulong num to funciton params where needed. cant use 0 to terminate an array of numbers
Diffstat (limited to 'cwmcc/prop.h')
| -rw-r--r-- | cwmcc/prop.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/cwmcc/prop.h b/cwmcc/prop.h index c9cb0751..b9b32620 100644 --- a/cwmcc/prop.h +++ b/cwmcc/prop.h @@ -8,31 +8,38 @@ you to free the returned value with g_free or g_strfreev (for the char**s) */ -gboolean prop_get32(Window win, Atom prop, Atom type, gulong *ret); +gboolean cwmcc_prop_get32(Window win, Atom prop, Atom type, gulong *ret); -gboolean prop_get_array32(Window win, Atom prop, Atom type, gulong **ret, +gboolean cwmcc_prop_get_array32(Window win, Atom prop, Atom type, gulong **ret, gulong *nret); -gboolean prop_get_string(Window win, Atom prop, Atom type, char **ret); +gboolean cwmcc_prop_get_string(Window win, Atom prop, Atom type, char **ret); /*! Gets a string from a property which is stored in UTF-8 encoding. */ -gboolean prop_get_string_utf8(Window win, Atom prop, char **ret); +gboolean cwmcc_prop_get_string_utf8(Window win, Atom prop, char **ret); /*! Gets a string from a property which is stored in the current local encoding. The returned string is in UTF-8 encoding. */ -gboolean prop_get_string_locale(Window win, Atom prop, char **ret); +gboolean cwmcc_prop_get_string_locale(Window win, Atom prop, char **ret); /*! Gets a null terminated array of strings from a property which is stored in UTF-8 encoding. */ -gboolean prop_get_strings_utf8(Window win, Atom prop, char ***ret); +gboolean cwmcc_prop_get_strings_utf8(Window win, Atom prop, char ***ret); /*! Gets a null terminated array of strings from a property which is stored in the current locale encoding. The returned string is in UTF-8 encoding. */ -gboolean prop_get_strings_locale(Window win, Atom prop, char ***ret); +gboolean cwmcc_prop_get_strings_locale(Window win, Atom prop, char ***ret); + +void cwmcc_prop_set32(Window win, Atom prop, Atom type, gulong val); + +void cwmcc_prop_set_array32(Window win, Atom prop, Atom type, + gulong *val, gulong num); + +void cwmcc_prop_set_string_utf8(Window win, Atom prop, char *val); /*! Sets a null terminated array of strings in a property encoded as UTF-8. */ -void prop_set_strings_utf8(Window win, Atom prop, char **strs); +void cwmcc_prop_set_strings_utf8(Window win, Atom prop, char **strs); -void prop_erase(Window win, Atom prop); +void cwmcc_prop_erase(Window win, Atom prop); #endif |
