atom: add xkb_atom_lookup
authorRan Benita <ran234@gmail.com>
Fri, 31 Aug 2012 15:52:26 +0000 (18:52 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 3 Sep 2012 07:31:13 +0000 (10:31 +0300)
commit7aa31097bf1386238efdf200a9328580850590af
tree359f9d7501ac81268c075b6023506b453f3ac544
parent651e1dab04cc4ecb67b9e7c83d634fd34c0723b6
atom: add xkb_atom_lookup

This will only lookup the string and return the atom if found; it will
not intern it if not. This is useful when e.g. getting a string from the
user (which may be arbitrary) and comparing against atoms.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/atom.c
src/atom.h
src/context.c
src/xkb-priv.h