autocommit 2022-01-06 19:08:32 CET
This commit is contained in:
parent
cbbc41a463
commit
4a939477a2
51 changed files with 3438 additions and 207 deletions
19
c/bridge.c
Normal file
19
c/bridge.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
extern void i4_xkbcommon_log_fn(enum xkb_log_level level, unsigned char *bytes, size_t len);
|
||||
|
||||
void i4_xkbcommon_log_fn_bridge(
|
||||
struct xkb_context *context,
|
||||
enum xkb_log_level level,
|
||||
const char *format, va_list args)
|
||||
{
|
||||
char *buf;
|
||||
int len = vasprintf(&buf, format, args);
|
||||
if (len < 0) {
|
||||
abort();
|
||||
}
|
||||
i4_xkbcommon_log_fn(level, (unsigned char *)buf, len);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue