options/linux: Add interfaces for weston
This commit is contained in:
parent
1810a43b09
commit
5fda366621
|
@ -86,11 +86,14 @@ libc_includes += getopt.h \
|
|||
linux/bpf_common.h \
|
||||
linux/filter.h \
|
||||
linux/input.h \
|
||||
linux/kd.h \
|
||||
linux/magic.h \
|
||||
linux/major.h \
|
||||
linux/netlink.h \
|
||||
linux/sched.h \
|
||||
linux/sockios.h \
|
||||
linux/types.h \
|
||||
linux/vt.h \
|
||||
malloc.h \
|
||||
mntent.h \
|
||||
poll.h \
|
||||
|
@ -105,7 +108,8 @@ libc_includes += getopt.h \
|
|||
sys/sendfile.h \
|
||||
sys/signalfd.h \
|
||||
sys/sysmacros.h \
|
||||
sys/timerfd.h
|
||||
sys/timerfd.h \
|
||||
values.h
|
||||
#LSB
|
||||
libc_includes += sys/auxv.h
|
||||
#Posix
|
||||
|
|
|
@ -161,6 +161,8 @@ struct input_absinfo {
|
|||
// BUTTON Codes
|
||||
//----------------------------------
|
||||
|
||||
#define BTN_LEFT 0x110
|
||||
#define BTN_RIGHT 0x111
|
||||
#define BTN_TOUCH 0x14A
|
||||
|
||||
//----------------------------------
|
||||
|
|
17
options/linux/include/linux/kd.h
Normal file
17
options/linux/include/linux/kd.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
#ifndef _LINUX_KD_H
|
||||
#define _LINUX_KD_H
|
||||
|
||||
#define KDSETMODE 0x4B3A
|
||||
#define KDSKBMODE 0x4B45
|
||||
#define KDGETMODE 0x4B3B
|
||||
#define KDGKBMODE 0x4B45
|
||||
|
||||
#define KD_TEXT 0x00
|
||||
#define KD_GRAPHICS 0x01
|
||||
|
||||
#define K_UNICODE 0x03
|
||||
#define K_OFF 0x04
|
||||
|
||||
#endif // _LINUX_KD_H
|
||||
|
8
options/linux/include/linux/major.h
Normal file
8
options/linux/include/linux/major.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
#ifndef _LINUX_MAJOR_H
|
||||
#define _LINUX_MAJOR_H
|
||||
|
||||
#define TTY_MAJOR 4
|
||||
|
||||
#endif // _LINUX_MAJOR_H
|
||||
|
31
options/linux/include/linux/vt.h
Normal file
31
options/linux/include/linux/vt.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
#ifndef _LINUX_VT_H
|
||||
#define _LINUX_VT_H
|
||||
|
||||
#define VT_SETMODE 0x5602
|
||||
#define VT_RELDISP 0x5605
|
||||
#define VT_ACTIVATE 0x5606
|
||||
#define VT_WAITACTIVE 0x5607
|
||||
|
||||
#define VT_AUTO 0x00
|
||||
#define VT_PROCESS 0x01
|
||||
#define VT_ACKACQ 0x02
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif __cplusplus
|
||||
|
||||
struct vt_mode {
|
||||
char mode;
|
||||
char waitv;
|
||||
short relsig;
|
||||
short acqsig;
|
||||
short frsig;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif __cplusplus
|
||||
|
||||
#endif // _LINUX_VT_H
|
||||
|
39
options/linux/include/values.h
Normal file
39
options/linux/include/values.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
|
||||
#ifndef _VALUES_H
|
||||
#define _VALUES_H
|
||||
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
|
||||
#define CHARBITS (sizeof(char) * 8)
|
||||
#define SHORTBITS (sizeof(short) * 8)
|
||||
#define INTBITS (sizeof(int) * 8)
|
||||
#define LONGBITS (sizeof(long) * 8)
|
||||
#define PTRBITS (sizeof(char *) * 8)
|
||||
#define DOUBLEBITS (sizeof(double) * 8)
|
||||
#define FLOATBITS (sizeof(float) * 8)
|
||||
|
||||
#define MINSHORT SHRT_MIN
|
||||
#define MININT INT_MIN
|
||||
#define MINLONG LONG_MIN
|
||||
|
||||
#define MAXSHORT SHRT_MAX
|
||||
#define MAXINT INT_MAX
|
||||
#define MAXLONG LONG_MAX
|
||||
|
||||
#define HIBITS MINSHORT
|
||||
#define HIBITL MINLONG
|
||||
|
||||
#define MAXDOUBLE DBL_MAX
|
||||
#define MAXFLOAT FLT_MAX
|
||||
#define MINDOUBLE DBL_MIN
|
||||
#define MINFLOAT FLT_MIN
|
||||
#define DMINEXP DBL_MIN_EXP
|
||||
#define FMINEXP FLT_MIN_EXP
|
||||
#define DMAXEXP DBL_MAX_EXP
|
||||
#define FMAXEXP FLT_MAX_EXP
|
||||
|
||||
#define BITSPERBYTE CHAR_BIT
|
||||
|
||||
#endif // _VALUES_H
|
||||
|
|
@ -77,6 +77,7 @@
|
|||
#define EWOULDBLOCK EAGAIN
|
||||
#define EXDEV 1075
|
||||
#define ENODATA 1076
|
||||
#define ETIME 1077
|
||||
|
||||
#endif // MLIBC_POSIX_ERRNO_H
|
||||
|
||||
|
|
Loading…
Reference in a new issue