shl: move log.[ch] to shl_log.[ch]
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 Mar 2013 13:40:36 +0000 (14:40 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 Mar 2013 13:40:36 +0000 (14:40 +0100)
We want to avoid any static files that are shared between multiple
programs but are not part of SHL. These make the build-process just more
complex.
Move log.[ch] to SHL so we have a known context.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
47 files changed:
Makefile.am
src/conf.c
src/font.c
src/font_8x16.c
src/font_freetype2.c
src/font_pango.c
src/font_unifont.c
src/kmscon_cdev.c
src/kmscon_conf.c
src/kmscon_dummy.c
src/kmscon_main.c
src/kmscon_mod_bbulk.c
src/kmscon_mod_cairo.c
src/kmscon_mod_freetype2.c
src/kmscon_mod_gltex.c
src/kmscon_mod_pango.c
src/kmscon_mod_pixman.c
src/kmscon_mod_unifont.c
src/kmscon_module.c
src/kmscon_seat.c
src/kmscon_terminal.c
src/pty.c
src/shl_log.c [moved from src/log.c with 99% similarity]
src/shl_log.h [moved from src/log.h with 99% similarity]
src/text.c
src/text_bblit.c
src/text_bbulk.c
src/text_cairo.c
src/text_gltex.c
src/text_pixman.c
src/uterm_drm2d_render.c
src/uterm_drm2d_video.c
src/uterm_drm3d_render.c
src/uterm_drm3d_video.c
src/uterm_drm_shared.c
src/uterm_fbdev_render.c
src/uterm_fbdev_video.c
src/uterm_input.c
src/uterm_input_uxkb.c
src/uterm_monitor.c
src/uterm_systemd.c
src/uterm_video.c
src/uterm_vt.c
src/wlt_main.c
src/wlt_terminal.c
src/wlt_theme.c
src/wlt_toolkit.c

index 91e48e4..bce78ed 100644 (file)
@@ -163,6 +163,8 @@ libshl_la_SOURCES = \
        src/shl_ring.h \
        src/shl_timer.h \
        src/shl_llog.h \
+       src/shl_log.h \
+       src/shl_log.c \
        src/shl_hook.h \
        src/shl_misc.h \
        src/shl_register.h
@@ -601,8 +603,6 @@ kmscon_SOURCES = \
        src/githead.h \
        src/conf.h \
        src/conf.c \
-       src/log.h \
-       src/log.c \
        src/pty.h \
        src/pty.c \
        src/font.h \
@@ -670,8 +670,6 @@ wlterm_SOURCES = \
        src/wlt_theme.c \
        src/wlt_terminal.h \
        src/wlt_terminal.c \
-       src/log.h \
-       src/log.c \
        src/conf.h \
        src/conf.c \
        src/pty.h \
@@ -699,8 +697,6 @@ wlterm_LDADD = \
 #
 
 test_sources = \
-       src/log.h \
-       src/log.c \
        src/conf.h \
        src/conf.c \
        tests/test_include.h
index 936e36f..890e599 100644 (file)
@@ -39,7 +39,7 @@
 #include <unistd.h>
 #include <xkbcommon/xkbcommon.h>
 #include "conf.h"
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 
 #define LOG_SUBSYSTEM "conf"
index a9a734e..c6ad8c1 100644 (file)
@@ -58,8 +58,8 @@
 #include <string.h>
 #include "font.h"
 #include "kmscon_module.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "shl_register.h"
 
index 24f8935..830bc30 100644 (file)
@@ -48,7 +48,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "font.h"
-#include "log.h"
+#include "shl_log.h"
 #include "uterm_video.h"
 
 #define LOG_SUBSYSTEM "font_8x16"
index 55e7cb1..37800dd 100644 (file)
@@ -45,9 +45,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include "font.h"
-#include "log.h"
 #include "shl_dlist.h"
 #include "shl_hashtable.h"
+#include "shl_log.h"
 #include "tsm_unicode.h"
 #include "uterm_video.h"
 
index 664b99e..c2954c6 100644 (file)
@@ -52,9 +52,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include "font.h"
-#include "log.h"
 #include "shl_dlist.h"
 #include "shl_hashtable.h"
+#include "shl_log.h"
 #include "tsm_unicode.h"
 #include "uterm_video.h"
 
index b0ab693..cdedbca 100644 (file)
@@ -43,8 +43,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include "font.h"
-#include "log.h"
 #include "shl_hashtable.h"
+#include "shl_log.h"
 #include "uterm_video.h"
 
 #define LOG_SUBSYSTEM "font_unifont"
index 1faee8f..d26629a 100644 (file)
@@ -44,9 +44,9 @@
 #include <unistd.h>
 #include "kmscon_cdev.h"
 #include "kmscon_seat.h"
-#include "log.h"
 #include "shl_array.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_ring.h"
 #include "tsm_screen.h"
 #include "tsm_vte.h"
index e3bd225..8edd5ee 100644 (file)
@@ -34,7 +34,7 @@
 #include <xkbcommon/xkbcommon-keysyms.h>
 #include "conf.h"
 #include "kmscon_conf.h"
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_video.h"
 
index 38432ce..df8ecb2 100644 (file)
@@ -32,8 +32,8 @@
 #include <string.h>
 #include "kmscon_dummy.h"
 #include "kmscon_seat.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "dummy"
 
index e8662da..c3c94ca 100644 (file)
@@ -36,8 +36,8 @@
 #include "kmscon_conf.h"
 #include "kmscon_module.h"
 #include "kmscon_seat.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "text.h"
 #include "uterm_input.h"
index fe2ad31..f0a2052 100644 (file)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include "text.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_bbulk"
 
index 3232c51..ecdcf62 100644 (file)
@@ -31,7 +31,7 @@
 #include <stdlib.h>
 #include "text.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_cairo"
 
index 8b821fd..39e4fe6 100644 (file)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include "font.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_freetype2"
 
index 7e92dd8..9f4579d 100644 (file)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include "text.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_gltex"
 
index 12a6ed2..de8b1e7 100644 (file)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include "font.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_pango"
 
index a5adfe1..f229e55 100644 (file)
@@ -31,7 +31,7 @@
 #include <stdlib.h>
 #include "text.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_pixman"
 
index ea2cba9..4b19954 100644 (file)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include "font.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
+#include "shl_log.h"
 
 #define LOG_SUBSYSTEM "mod_unifont"
 
index 87a0d1e..471f5af 100644 (file)
@@ -33,8 +33,8 @@
 #include "githead.h"
 #include "kmscon_module.h"
 #include "kmscon_module_interface.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 
 #define LOG_SUBSYSTEM "module"
index ab248fb..be8a5ab 100644 (file)
@@ -39,8 +39,8 @@
 #include "kmscon_dummy.h"
 #include "kmscon_seat.h"
 #include "kmscon_terminal.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "uterm_input.h"
 #include "uterm_video.h"
 #include "uterm_vt.h"
index 0b9af07..768b1ed 100644 (file)
@@ -39,9 +39,9 @@
 #include "kmscon_conf.h"
 #include "kmscon_seat.h"
 #include "kmscon_terminal.h"
-#include "log.h"
 #include "pty.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "text.h"
 #include "tsm_screen.h"
 #include "tsm_vte.h"
index bbd6d76..3e17512 100644 (file)
--- a/src/pty.c
+++ b/src/pty.c
@@ -37,8 +37,8 @@
 #include <termios.h>
 #include <unistd.h>
 #include "eloop.h"
-#include "log.h"
 #include "pty.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "shl_ring.h"
 
similarity index 99%
rename from src/log.c
rename to src/shl_log.c
index 200a879..d35a31f 100644 (file)
--- a/src/log.c
@@ -20,7 +20,7 @@
 #include <string.h>
 #include <sys/time.h>
 #include "githead.h"
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 
 /*
similarity index 99%
rename from src/log.h
rename to src/shl_log.h
index 2db3d21..fe62397 100644 (file)
--- a/src/log.h
@@ -22,8 +22,8 @@
  * debug-messages for this file.
  */
 
-#ifndef LOG_H_INCLUDED
-#define LOG_H_INCLUDED
+#ifndef SHL_LOG_H_INCLUDED
+#define SHL_LOG_H_INCLUDED
 
 #include <stdarg.h>
 #include <stdbool.h>
@@ -295,4 +295,4 @@ extern const char *LOG_SUBSYSTEM;
 #define log_err log_error
 #define log_crit log_critical
 
-#endif /* LOG_H_INCLUDED */
+#endif /* SHL_LOG_H_INCLUDED */
index c829bef..5f3c07a 100644 (file)
@@ -35,8 +35,8 @@
 #include <pthread.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "shl_register.h"
 #include "text.h"
index ca19fb4..8cf9bfd 100644 (file)
@@ -36,7 +36,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
+#include "shl_log.h"
 #include "text.h"
 #include "uterm_video.h"
 
index 298d252..3f238c1 100644 (file)
@@ -36,7 +36,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
+#include "shl_log.h"
 #include "text.h"
 #include "uterm_video.h"
 
index 6859aff..715bfb4 100644 (file)
@@ -32,8 +32,8 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
 #include "shl_hashtable.h"
+#include "shl_log.h"
 #include "text.h"
 #include "uterm_video.h"
 
index 9e864a0..e767096 100644 (file)
@@ -45,9 +45,9 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
 #include "shl_dlist.h"
 #include "shl_hashtable.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "static_gl.h"
 #include "text.h"
index a06209a..fc10f71 100644 (file)
@@ -32,8 +32,8 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
 #include "shl_hashtable.h"
+#include "shl_log.h"
 #include "text.h"
 #include "uterm_video.h"
 
index 6e50bd2..cfe4d75 100644 (file)
@@ -38,7 +38,7 @@
 #include <xf86drm.h>
 #include <xf86drmMode.h>
 #include "eloop.h"
-#include "log.h"
+#include "shl_log.h"
 #include "uterm_drm_shared_internal.h"
 #include "uterm_drm2d_internal.h"
 #include "uterm_video.h"
index 0c3154a..bd103b3 100644 (file)
@@ -38,7 +38,7 @@
 #include <xf86drm.h>
 #include <xf86drmMode.h>
 #include "eloop.h"
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_drm_shared_internal.h"
 #include "uterm_drm2d_internal.h"
index 881c379..6080d2c 100644 (file)
@@ -45,7 +45,7 @@
 #include <xf86drm.h>
 #include <xf86drmMode.h>
 #include "eloop.h"
-#include "log.h"
+#include "shl_log.h"
 #include "static_gl.h"
 #include "uterm_drm_shared_internal.h"
 #include "uterm_drm3d_internal.h"
index c8797b9..cc60685 100644 (file)
@@ -45,7 +45,7 @@
 #include <xf86drm.h>
 #include <xf86drmMode.h>
 #include "eloop.h"
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "static_gl.h"
 #include "uterm_drm_shared_internal.h"
index 9071b9c..cfa8a80 100644 (file)
@@ -36,7 +36,7 @@
 #include <unistd.h>
 #include <xf86drm.h>
 #include <xf86drmMode.h>
-#include "log.h"
+#include "shl_log.h"
 #include "shl_timer.h"
 #include "uterm_drm_shared_internal.h"
 #include "uterm_video.h"
index ad96ad3..a06bf08 100644 (file)
@@ -31,7 +31,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include "log.h"
+#include "shl_log.h"
 #include "uterm_fbdev_internal.h"
 #include "uterm_video.h"
 #include "uterm_video_internal.h"
index 1d06138..06bddca 100644 (file)
@@ -36,7 +36,7 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <unistd.h>
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_fbdev_internal.h"
 #include "uterm_video.h"
index ba95771..1ba8812 100644 (file)
@@ -37,9 +37,9 @@
 #include <string.h>
 #include <unistd.h>
 #include "eloop.h"
-#include "log.h"
 #include "shl_dlist.h"
 #include "shl_hook.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_input.h"
 #include "uterm_input_internal.h"
index 582151e..3053dfc 100644 (file)
@@ -32,8 +32,8 @@
 #include <string.h>
 #include <unistd.h>
 #include <xkbcommon/xkbcommon.h>
-#include "log.h"
 #include "shl_hook.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_input.h"
 #include "uterm_input_internal.h"
index b3a78fc..c6e0a6d 100644 (file)
@@ -40,8 +40,8 @@
 #include <string.h>
 #include <sys/ioctl.h>
 #include <unistd.h>
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_monitor.h"
 #include "uterm_systemd_internal.h"
index 0240370..c316bed 100644 (file)
@@ -36,7 +36,7 @@
 #include <string.h>
 #include <systemd/sd-daemon.h>
 #include <systemd/sd-login.h>
-#include "log.h"
+#include "shl_log.h"
 #include "uterm_monitor.h"
 #include "uterm_systemd_internal.h"
 
index c35b622..0323ecf 100644 (file)
@@ -35,9 +35,9 @@
 #include <string.h>
 #include <unistd.h>
 #include "eloop.h"
-#include "log.h"
 #include "shl_dlist.h"
 #include "shl_hook.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_video.h"
 #include "uterm_video_internal.h"
index 55a9e54..d0f18ea 100644 (file)
@@ -45,8 +45,8 @@
 #include <unistd.h>
 #include <xkbcommon/xkbcommon-keysyms.h>
 #include "eloop.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "uterm_input.h"
 #include "uterm_vt.h"
index 2c8d509..f3caa58 100644 (file)
@@ -38,8 +38,8 @@
 #include "conf.h"
 #include "eloop.h"
 #include "font.h"
-#include "log.h"
 #include "shl_dlist.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "wlt_main.h"
 #include "wlt_terminal.h"
index 478ce5e..f90f574 100644 (file)
@@ -38,8 +38,8 @@
 #include "conf.h"
 #include "eloop.h"
 #include "font.h"
-#include "log.h"
 #include "pty.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "tsm_unicode.h"
 #include "tsm_screen.h"
index 4872da7..c76693c 100644 (file)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <wayland-client.h>
-#include "log.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "wlt_main.h"
 #include "wlt_theme.h"
index 104def2..548cb1e 100644 (file)
 #include <wayland-cursor.h>
 #include <xkbcommon/xkbcommon.h>
 #include "eloop.h"
-#include "log.h"
 #include "shl_array.h"
 #include "shl_dlist.h"
 #include "shl_hook.h"
+#include "shl_log.h"
 #include "shl_misc.h"
 #include "tsm_vte.h"
 #include "wlt_main.h"