mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
This change contains various changes and refactorings which together allows the integration tests to pass again. One of the important changs is `DbusTestHelper` which listens to a DBus signal for a sentinel message and then simulates the sentinel key press. Getting this to work also requires processing sd-bus messages which hooks into the glib event loop and is implemented in `EventSource`. Fixes: #13204
22 lines
392 B
C
22 lines
392 B
C
#ifndef __KEYHANDLING_H__
|
|
#define __KEYHANDLING_H__
|
|
|
|
#include "kmx_test_source.hpp"
|
|
#include "testfixture.h"
|
|
|
|
typedef struct {
|
|
IBusKeymanTestsFixture* fixture;
|
|
km::tests::key_event key_event;
|
|
} KeyPressData;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void press_key(IBusKeymanTestsFixture* fixture, km::tests::key_event key_event);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __KEYHANDLING_H__
|