libxkbcommon/include/xkbcommon
Ran Benita b89b8e7023 Change xkb_map_new_from_fd to use FILE*
i.e. xkb_map_new_from_file. The reason is that flex only works with
FILE's, so we must use fdopen on the file descriptor; but to avoid a
memory leak, we must also fclose() it, which, in turn, closes the file
descriptor itself.

Either way is not acceptable, so we can either:
* dup() the fd and use fdopen on that, or
* have the user call fdopen on his own, and accept a FILE* instead of an
  fd.

The second one seems better, and is standard C, so why not. We must add
stdio.h to xkbcommon.h though, which is regrettable, but not a big deal.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-05-18 20:54:33 +03:00
..
xkbcommon-keysyms.h Add XKB version of X11 keysyms 2012-05-09 14:21:15 -04:00
xkbcommon-names.h Add common LED names to xkbcommon-names.h 2012-05-09 20:18:30 +01:00
xkbcommon.h Change xkb_map_new_from_fd to use FILE* 2012-05-18 20:54:33 +03:00