X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=cwmcc%2Fprop.h;h=b9b32620b81c1c0f6fe6d274418fe0978d7d03d1;hb=bb8b9ddbc5c7932f184aeed744f4762b5c95fe28;hp=c046f5b8b9653c2c20d90cce94b91e4643359ae7;hpb=f317ceeaf28bc656e59a0f089ac11818ca5e8bd3;p=chaz%2Fopenbox diff --git a/cwmcc/prop.h b/cwmcc/prop.h index c046f5b8..b9b32620 100644 --- a/cwmcc/prop.h +++ b/cwmcc/prop.h @@ -1,5 +1,5 @@ -#ifndef __prop_h -#define __prop_h +#ifndef __cwmcc_prop_h +#define __cwmcc_prop_h #include #include @@ -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