Mention xkb_state_new can return NULL

in the header comments.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-03-23 16:52:23 +02:00 committed by Daniel Stone
parent 087327d9c5
commit d9f934ca42
1 changed files with 2 additions and 1 deletions

View File

@ -318,7 +318,8 @@ xkb_map_led_get_index(struct xkb_desc *xkb, const char *name);
*/ */
/** /**
* Allocates a new XKB state object for use with the given keymap. * Returns a new XKB state object for use with the given keymap, or NULL on
* failure.
*/ */
_X_EXPORT struct xkb_state * _X_EXPORT struct xkb_state *
xkb_state_new(struct xkb_desc *xkb); xkb_state_new(struct xkb_desc *xkb);