summaryrefslogtreecommitdiff
path: root/src/atom.h
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-07-21 16:41:27 +0300
committerRan Benita <ran234@gmail.com>2013-07-21 17:07:41 +0300
commit7e0ae4b4d5bfcebd7bf4cefcefe681ea7ecc5f61 (patch)
treebdd39e92c5d9dacd6facc7d5725d4253bcdfa917 /src/atom.h
parent9cd29453aec206727adeafe0c27d629d61fe1310 (diff)
downloadxorg-lib-libxkbcommon-7e0ae4b4d5bfcebd7bf4cefcefe681ea7ecc5f61.tar.gz
atom: allow interning non-NUL-terminated strings
We need this later. The strlen was calculated anyway, so no loss here. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/atom.h')
-rw-r--r--src/atom.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/atom.h b/src/atom.h
index 7ee7acc..94c1494 100644
--- a/src/atom.h
+++ b/src/atom.h
@@ -37,10 +37,11 @@ void
atom_table_free(struct atom_table *table);
xkb_atom_t
-atom_lookup(struct atom_table *table, const char *string);
+atom_lookup(struct atom_table *table, const char *string, size_t len);
xkb_atom_t
-atom_intern(struct atom_table *table, const char *string, bool steal);
+atom_intern(struct atom_table *table, const char *string, size_t len,
+ bool steal);
char *
atom_strdup(struct atom_table *table, xkb_atom_t atom);