documentation was wrong
[sdlhildon] / sdlhim / src / atoms.h
1 /* This file is part of SDL_him - SDL Hildon Input Method addon
2  * Copyright (C) 2010 Javier S. Pedro
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 3 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA or see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef ATOMS_H
21 #define ATOMS_H
22
23 /* Important needed definition: HILDON_IM_NUM_ATOMS */
24 #include <hildon-im-protocol.h>
25
26 /* The atoms we need were changed in Fremantle */
27 #if MAEMO_VERSION == 5
28 #define ATOMS_INC_FILE "atoms-fremantle.inc"
29 #elif MAEMO_VERSION == 4
30 #define ATOMS_INC_FILE "atoms-diablo.inc"
31 #else
32 #error No atom definitions
33 #endif
34
35 extern const char * atom_names[HILDON_IM_NUM_ATOMS];
36 extern Atom atom_values[HILDON_IM_NUM_ATOMS];
37
38 #define ATOM(X) atom_values[ X ]
39
40 #endif
41