]> git.decadent.org.uk Git - ion3.git/blob - ioncore/property.h
cb9252ea0178aa559b21b32a47cfd45cac3bea1e
[ion3.git] / ioncore / property.h
1 /*
2  * ion/ioncore/property.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
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.
10  */
11
12 #ifndef ION_IONCORE_PROPERTY_H
13 #define ION_IONCORE_PROPERTY_H
14
15 #include <X11/Xatom.h>
16
17 #include "common.h"
18
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);
30
31 #endif /* ION_IONCORE_PROPERTY_H */
32