initial import for sdlhaa & sdlhim
[sdlhildon] / sdlhim / src / atoms.c
diff --git a/sdlhim/src/atoms.c b/sdlhim/src/atoms.c
new file mode 100644 (file)
index 0000000..87bb6d1
--- /dev/null
@@ -0,0 +1,33 @@
+/* This file is part of SDL_him - SDL Hildon Input Method addon
+ * Copyright (C) 2010 Javier S. Pedro
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA or see <http://www.gnu.org/licenses/>.
+ */
+
+#include <X11/Xatom.h>
+#include <hildon-im-protocol.h>
+#include "atoms.h"
+
+/* List of interesting X Atom names. See atoms.h, and atoms-*.inc */
+
+const char * atom_names[HILDON_IM_NUM_ATOMS] = {
+#define A(atom) HILDON_IM_ ## atom ## _NAME ,
+#include ATOMS_INC_FILE
+#undef A
+};
+
+Atom atom_values[HILDON_IM_NUM_ATOMS];
+