uterm: move uterm_internal.h to uterm_input.h
uterm_internal.h contains only input related content so we can rename it and remove all the inclusions where it is not needed. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
d0ac886972
commit
7f2d9dc4ff
@ -40,7 +40,7 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_input.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "input"
|
||||
|
||||
|
@ -25,11 +25,10 @@
|
||||
|
||||
/* Internal definitions */
|
||||
|
||||
#ifndef UTERM_INTERNAL_H
|
||||
#define UTERM_INTERNAL_H
|
||||
#ifndef UTERM_INPUT_H
|
||||
#define UTERM_INPUT_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <libudev.h>
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
@ -37,13 +36,6 @@
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
|
||||
static inline bool input_bit_is_set(const unsigned long *array, int bit)
|
||||
{
|
||||
return !!(array[bit / LONG_BIT] & (1LL << (bit % LONG_BIT)));
|
||||
}
|
||||
|
||||
/* kbd API */
|
||||
|
||||
struct kbd_desc;
|
||||
struct kbd_dev;
|
||||
|
||||
@ -247,4 +239,9 @@ static inline int kbd_dev_process(struct kbd_dev *dev,
|
||||
return dev->ops->process(dev, key_state, code, out);
|
||||
}
|
||||
|
||||
#endif /* UTERM_INTERNAL_H */
|
||||
static inline bool input_bit_is_set(const unsigned long *array, int bit)
|
||||
{
|
||||
return !!(array[bit / LONG_BIT] & (1LL << (bit % LONG_BIT)));
|
||||
}
|
||||
|
||||
#endif /* UTERM_INPUT_H */
|
@ -45,7 +45,7 @@
|
||||
#include "imKStoUCS.h"
|
||||
#include "log.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_input.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "input_plain"
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include "log.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_input.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "input_uxkb"
|
||||
|
||||
|
@ -40,7 +40,6 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
|
||||
#ifdef UTERM_HAVE_SYSTEMD
|
||||
#include <systemd/sd-login.h>
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_video.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "video"
|
||||
|
@ -48,7 +48,6 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_video.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "video_drm"
|
||||
|
@ -41,7 +41,6 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_video.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "video_dumb"
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
#include "uterm_video.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "video_fbdev"
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include "log.h"
|
||||
#include "static_misc.h"
|
||||
#include "uterm.h"
|
||||
#include "uterm_internal.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "vt"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user