summaryrefslogtreecommitdiff
path: root/src/uterm_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uterm_input.h')
-rw-r--r--src/uterm_input.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/uterm_input.h b/src/uterm_input.h
index 43faccc..1d5d1f0 100644
--- a/src/uterm_input.h
+++ b/src/uterm_input.h
@@ -40,6 +40,15 @@
struct uterm_input;
+typedef void (*uterm_input_log_t) (void *data,
+ const char *file,
+ int line,
+ const char *func,
+ const char *subs,
+ unsigned int sev,
+ const char *format,
+ va_list args);
+
/* keep in sync with shl_xkb_mods */
enum uterm_input_modifier {
UTERM_SHIFT_MASK = (1 << 0),
@@ -72,7 +81,8 @@ typedef void (*uterm_input_cb) (struct uterm_input *input,
int uterm_input_new(struct uterm_input **out, struct ev_eloop *eloop,
const char *model, const char *layout, const char *variant,
const char *options, const char *keymap,
- unsigned int repeat_delay, unsigned int repeat_rate);
+ unsigned int repeat_delay, unsigned int repeat_rate,
+ uterm_input_log_t log, void *log_data);
void uterm_input_ref(struct uterm_input *input);
void uterm_input_unref(struct uterm_input *input);