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.
This commit is contained in:
Dorota Czaplejewicz
2019-07-22 13:07:39 +00:00
parent a6ee303123
commit fad06348a7

View File

@ -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,