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:
David Herrmann 2012-09-11 19:16:54 +02:00
parent d0ac886972
commit 7f2d9dc4ff
10 changed files with 11 additions and 20 deletions

View File

@ -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"

View File

@ -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 */

View File

@ -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"

View File

@ -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"

View File

@ -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>

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -45,7 +45,6 @@
#include "log.h"
#include "static_misc.h"
#include "uterm.h"
#include "uterm_internal.h"
#define LOG_SUBSYSTEM "vt"