/usr/include/lirc/input_map.h is in liblirc-dev 0.10.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /****************************************************************************
** input_map.h *************************************************************
****************************************************************************
*
* input_map.h - button namespace derived from Linux input layer
*
* Copyright (C) 2008 Christoph Bartelmus <lirc@bartelmus.de>
*
*/
/**
* @file input_map.h
* @brief Button namespace derived from Linux input layer.
* @ingroup private_api
*/
#ifndef INPUT_MAP_H
#define INPUT_MAP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_LINUX_INPUT_H
#include <linux/input.h>
#include <linux/uinput.h>
#endif
#if defined __linux__
typedef uint16_t linux_input_code;
#else
typedef unsigned short linux_input_code;
#endif
int get_input_code(const char* name, linux_input_code* code);
void fprint_namespace(FILE* f);
int is_in_namespace(const char* name);
#ifdef __cplusplus
}
#endif
#endif /* INPUT_MAP_H */
|