Skip to content

Commit 356a518

Browse files
Renamed suinput_write() to suinput_emit().
New name reflects better the actual action: "emit an event with these parameters" Now there is clearer distinction to suinput_write_event() which just writes the given event to uinput device as is.
1 parent bf1ba56 commit 356a518

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/suinput.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ int suinput_write_event(int uinput_fd, const struct input_event *event_p)
3737
return 0;
3838
}
3939

40-
int suinput_write(int uinput_fd, uint16_t ev_type, uint16_t ev_code,
41-
int32_t ev_value)
40+
int suinput_emit(int uinput_fd, uint16_t ev_type, uint16_t ev_code,
41+
int32_t ev_value)
4242
{
4343
struct input_event event;
4444
memset(&event, 0, sizeof(event));
@@ -51,7 +51,7 @@ int suinput_write(int uinput_fd, uint16_t ev_type, uint16_t ev_code,
5151

5252
int suinput_syn(int uinput_fd)
5353
{
54-
return suinput_write(uinput_fd, EV_SYN, SYN_REPORT, 0);
54+
return suinput_emit(uinput_fd, EV_SYN, SYN_REPORT, 0);
5555
}
5656

5757
static char *suinput_get_uinput_path(void)

src/suinput.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
int suinput_write_event(int uinput_fd, const struct input_event *event_p);
2727

28-
int suinput_write(int uinput_fd, uint16_t ev_type, uint16_t ev_code,
29-
int32_t ev_value);
28+
int suinput_emit(int uinput_fd, uint16_t ev_type, uint16_t ev_code,
29+
int32_t ev_value);
3030

3131
int suinput_syn(int uinput_fd);
3232

0 commit comments

Comments
 (0)