2 * ion/ioncore/property.h
4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 #ifndef ION_IONCORE_PROPERTY_H
13 #define ION_IONCORE_PROPERTY_H
15 #include <X11/Xatom.h>
19 extern ulong xwindow_get_property(Window win, Atom atom, Atom type,
20 ulong n32expected, bool more, uchar **p);
21 extern char *xwindow_get_string_property(Window win, Atom a, int *nret);
22 extern void xwindow_set_string_property(Window win, Atom a, const char *value);
23 extern bool xwindow_get_integer_property(Window win, Atom a, int *vret);
24 extern void xwindow_set_integer_property(Window win, Atom a, int value);
25 extern bool xwindow_get_state_property(Window win, int *state);
26 extern void xwindow_set_state_property(Window win, int state);
27 extern char **xwindow_get_text_property(Window win, Atom a, int *nret);
28 extern void xwindow_set_text_property(Window win, Atom a,
29 const char **p, int n);
31 #endif /* ION_IONCORE_PROPERTY_H */