projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a1201b
)
Document that xkb_state_get_map doesn't take a ref
author
Daniel Stone
<daniel@fooishbar.org>
Wed, 9 May 2012 19:52:33 +0000
(20:52 +0100)
committer
Daniel Stone
<daniel@fooishbar.org>
Wed, 9 May 2012 19:52:33 +0000
(20:52 +0100)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
include/xkbcommon/xkbcommon.h
patch
|
blob
|
history
diff --git
a/include/xkbcommon/xkbcommon.h
b/include/xkbcommon/xkbcommon.h
index
541b571
..
ce226f7
100644
(file)
--- a/
include/xkbcommon/xkbcommon.h
+++ b/
include/xkbcommon/xkbcommon.h
@@
-390,7
+390,9
@@
void
xkb_state_unref(struct xkb_state *state);
/**
- * Get the keymap from which the state object was created.
+ * Get the keymap from which the state object was created. Does not take
+ * a new reference on the map; you must explicitly reference it yourself
+ * if you plan to use it beyond the lifetime of the state.
*/
struct xkb_keymap *
xkb_state_get_map(struct xkb_state *state);