2 * ion/ioncore/property.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_PROPERTY_H
10 #define ION_IONCORE_PROPERTY_H
12 #include <X11/Xatom.h>
16 extern ulong xwindow_get_property(Window win, Atom atom, Atom type,
17 ulong n32expected, bool more, uchar **p);
18 extern char *xwindow_get_string_property(Window win, Atom a, int *nret);
19 extern void xwindow_set_string_property(Window win, Atom a, const char *value);
20 extern bool xwindow_get_integer_property(Window win, Atom a, int *vret);
21 extern void xwindow_set_integer_property(Window win, Atom a, int value);
22 extern bool xwindow_get_state_property(Window win, int *state);
23 extern void xwindow_set_state_property(Window win, int state);
24 extern char **xwindow_get_text_property(Window win, Atom a, int *nret);
25 extern void xwindow_set_text_property(Window win, Atom a,
26 const char **p, int n);
28 #endif /* ION_IONCORE_PROPERTY_H */