refactor: Remove vkm_ prefix from VKM source files

pull/66/head
nirenjan 2026-04-03 23:54:58 -07:00
parent c0c8787331
commit 806a88c93d
8 changed files with 30 additions and 30 deletions

View File

@ -4,7 +4,7 @@ libx52/stringify.c
libx52io/strings.c
vkm/vkm_common.c
vkm/common.c
evtest/ev_test.c

View File

@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: libx52/strerror.c:23 libx52io/strings.c:196 vkm/vkm_common.c:25
#: libx52/strerror.c:23 libx52io/strings.c:196 vkm/common.c:25
msgid "Success"
msgstr ""
@ -29,7 +29,7 @@ msgstr ""
msgid "Insufficient memory"
msgstr ""
#: libx52/strerror.c:26 vkm/vkm_common.c:29
#: libx52/strerror.c:26 vkm/common.c:29
msgid "Invalid parameter"
msgstr ""
@ -85,7 +85,7 @@ msgstr ""
msgid "System call interrupted"
msgstr ""
#: libx52/strerror.c:66 libx52io/strings.c:220 vkm/vkm_common.c:52
#: libx52/strerror.c:66 libx52io/strings.c:220 vkm/common.c:52
#, c-format
msgid "Unknown error %d"
msgstr ""
@ -233,31 +233,31 @@ msgstr ""
msgid "Read timeout"
msgstr ""
#: vkm/vkm_common.c:26
#: vkm/common.c:26
msgid "Unknown error"
msgstr ""
#: vkm/vkm_common.c:27
#: vkm/common.c:27
msgid "Not ready"
msgstr ""
#: vkm/vkm_common.c:28
#: vkm/common.c:28
msgid "Out of memory"
msgstr ""
#: vkm/vkm_common.c:30
#: vkm/common.c:30
msgid "Not supported"
msgstr ""
#: vkm/vkm_common.c:31
#: vkm/common.c:31
msgid "Virtual device failure"
msgstr ""
#: vkm/vkm_common.c:32
#: vkm/common.c:32
msgid "Unable to write event"
msgstr ""
#: vkm/vkm_common.c:33
#: vkm/common.c:33
msgid "No state change"
msgstr ""

View File

@ -17,7 +17,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"
#: libx52/strerror.c:23 libx52io/strings.c:196 vkm/vkm_common.c:25
#: libx52/strerror.c:23 libx52io/strings.c:196 vkm/common.c:25
msgid "Success"
msgstr "Uccesssay"
@ -29,7 +29,7 @@ msgstr "Initializationay ailurefay"
msgid "Insufficient memory"
msgstr "Insufficientay emorymay"
#: libx52/strerror.c:26 vkm/vkm_common.c:29
#: libx52/strerror.c:26 vkm/common.c:29
msgid "Invalid parameter"
msgstr "Invaliday arameterpay"
@ -85,7 +85,7 @@ msgstr "Ipepay erroray"
msgid "System call interrupted"
msgstr "Ystemsay allcay interrupteday"
#: libx52/strerror.c:66 libx52io/strings.c:220 vkm/vkm_common.c:52
#: libx52/strerror.c:66 libx52io/strings.c:220 vkm/common.c:52
#, c-format
msgid "Unknown error %d"
msgstr "Unknownay erroray %d"
@ -233,31 +233,31 @@ msgstr "I/O erroray"
msgid "Read timeout"
msgstr "Eadray imeouttay"
#: vkm/vkm_common.c:26
#: vkm/common.c:26
msgid "Unknown error"
msgstr "Unknownay erroray"
#: vkm/vkm_common.c:27
#: vkm/common.c:27
msgid "Not ready"
msgstr "Otnay eadyray"
#: vkm/vkm_common.c:28
#: vkm/common.c:28
msgid "Out of memory"
msgstr "Outay ofay emorymay"
#: vkm/vkm_common.c:30
#: vkm/common.c:30
msgid "Not supported"
msgstr "Otnay upportedsay"
#: vkm/vkm_common.c:31
#: vkm/common.c:31
msgid "Virtual device failure"
msgstr "Irtualvay eviceday ailurefay"
#: vkm/vkm_common.c:32
#: vkm/common.c:32
msgid "Unable to write event"
msgstr "Unableay otay itewray eventay"
#: vkm/vkm_common.c:33
#: vkm/common.c:33
msgid "No state change"
msgstr "Onay atestay angechay"

View File

@ -25,7 +25,7 @@ static const int vkm_key_to_evdev[VKM_KEY_MAX] = {
#if defined(__GNUC__) || defined(__clang__)
[0 ...(VKM_KEY_MAX - 1)] = -1,
#else
#error "vkm_linux_evdev.c requires GCC or Clang (sparse vkm_key_to_evdev initializer)"
#error "linux_evdev.c requires GCC or Clang (sparse vkm_key_to_evdev initializer)"
#endif
[VKM_KEY_NONE] = -1,

View File

@ -163,7 +163,7 @@ static void expect_enable_mouse_events(bool hi_res, bool horiz)
#undef EXPECT_KEY_CODE
}
/** Same order as \c enable_keyboard_events() in \c vkm_linux_evdev.c (skip unmapped indices). */
/** Same order as \c enable_keyboard_events() in \c linux_evdev.c (skip unmapped indices). */
static const unsigned int expect_kb_codes[] = {
KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, KEY_M,
KEY_N, KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T, KEY_U, KEY_V, KEY_W, KEY_X, KEY_Y, KEY_Z,

View File

@ -1,18 +1,18 @@
vkm_version = '0.1.0'
vkm_files = files(
'vkm_common.c'
'common.c'
)
vkm_stub_files = files(
'vkm_stub.c'
'stub.c'
)
if host_machine.system() == 'linux'
vkm_dep = dep_evdev
if dep_evdev.found()
vkm_platform_files = files(
'vkm_linux_evdev.c'
'linux_evdev.c'
)
else
vkm_platform_files = vkm_stub_files
@ -31,7 +31,7 @@ lib_vkm = library('vkm', vkm_files + vkm_platform_files,
vkm_strerror_test = executable('vkm-strerror-test',
'test_strerror.c',
'vkm_common.c',
'common.c',
build_by_default: false,
dependencies: [dep_cmocka, dep_intl],
include_directories: [includes],
@ -43,9 +43,9 @@ if host_machine.system() == 'linux' and dep_evdev.found()
dep_evdev_headers = dep_evdev.partial_dependency(compile_args: true, link_args: false)
vkm_linux_evdev_test = executable('vkm_linux_evdev_test',
files(
'vkm_linux_evdev_test.c',
'vkm_linux_evdev.c',
'vkm_common.c',
'linux_evdev_test.c',
'linux_evdev.c',
'common.c',
),
include_directories: [includes],
dependencies: [dep_cmocka, dep_evdev_headers, dep_intl],