File: input_map.h

package info (click to toggle)
lirc 0.9.0~pre1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,844 kB
  • sloc: ansic: 44,120; sh: 11,159; makefile: 430; python: 108; perl: 106
file content (35 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (2)
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
/*      $Id: input_map.h,v 5.1 2008/10/26 15:10:17 lirc Exp $      */

/****************************************************************************
 ** input_map.h *************************************************************
 ****************************************************************************
 *
 * input_map.h - button namespace derived from Linux input layer
 *
 * Copyright (C) 2008 Christoph Bartelmus <lirc@bartelmus.de>
 *
 */

#ifndef INPUT_MAP_H
#define INPUT_MAP_H

#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

#if defined __linux__
#include <linux/input.h>
#include <linux/uinput.h>
#endif

#if defined __linux__
typedef __u16 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);

#endif /* INPUT_MAP_H */