From fad06348a7c22599d9367c7bd6bd3eb2321f9a99 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Mon, 22 Jul 2019 13:07:39 +0000 Subject: [PATCH] imservice: Make imservice opaque The structure is defined in Rust, with the intention of evaluating using Rust in this area. It's specifically not defined as repr(C), in order to encourage that. Without the repr, it was unsafe to have its members exposed in C. --- src/imservice.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/imservice.h b/src/imservice.h index 46933916..fab7c106 100644 --- a/src/imservice.h +++ b/src/imservice.h @@ -4,11 +4,7 @@ #include "input-method-unstable-v2-client-protocol.h" #include "eek/eek-types.h" -struct imservice -{ - struct zwp_input_method_v2 *im; - EekboardContextService *ui_manager; -}; +struct imservice; struct imservice* get_imservice(EekboardContextService *context, struct zwp_input_method_manager_v2 *manager,