imservice: Handle content type in Rust
This adds `bitflags.rs` from the bitflags crate. Due to not wanting to introduce Cargo as the dependency manager yet, it's slightly modified to compile as a naked module.
This commit is contained in:
@ -7,14 +7,6 @@
|
||||
|
||||
void imservice_handle_text_change_cause(void *data, struct zwp_input_method_v2 *input_method, uint32_t cause) {}
|
||||
|
||||
void imservice_handle_content_type(void *data, struct zwp_input_method_v2 *input_method, uint32_t hint, uint32_t purpose)
|
||||
{
|
||||
struct imservice *ims = (struct imservice*)data;
|
||||
EekboardContextService *context = EEKBOARD_CONTEXT_SERVICE(ims->ui_manager);
|
||||
|
||||
eekboard_context_service_set_hint_purpose(context, hint, purpose);
|
||||
}
|
||||
|
||||
void imservice_handle_unavailable(void *data, struct zwp_input_method_v2 *input_method) {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user