1
0
Fork 0
forked from wry/wry

all: inherit metadeta from cargo workspace

This commit is contained in:
kossLAN 2026-06-05 21:14:57 -04:00
parent 1c21bd1259
commit d920e554cf
No known key found for this signature in database
52 changed files with 328 additions and 320 deletions

View file

@ -0,0 +1,32 @@
#define _GNU_SOURCE
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
static char *fmt(const char *format, va_list args) {
char *line;
int ret = vasprintf(&line, format, args);
if (ret < 0) {
return 0;
} else {
return line;
}
}
void jay_libinput_log_handler(
void *libinput,
int priority,
const char *line
);
void jay_libinput_log_handler_bridge(
void *libinput,
int priority,
const char *format,
va_list args
) {
char *line = fmt(format, args);
jay_libinput_log_handler(libinput, priority, line);
free(line);
}