Skip to content

Commit

Permalink
apply patch generated by matt
Browse files Browse the repository at this point in the history
  • Loading branch information
seflerZ committed May 4, 2024
1 parent 862fdef commit 596f419
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion sesman/chansrv/chansrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ process_message_unicode_setup(struct stream *s)
static int
process_message_unicode_shutdown(struct stream *s)
{
return xrdp_input_unicode_destory();
return xrdp_input_unicode_destroy();
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions sesman/chansrv/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ int
xrdp_input_send_unicode(char32_t unicode);

int
xrdp_input_unicode_init();
xrdp_input_unicode_init(void);

int
xrdp_input_unicode_destory();
xrdp_input_unicode_destroy(void);

#endif
27 changes: 14 additions & 13 deletions sesman/chansrv/input_ibus.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static IBusEngine *g_engine;
static const gchar *last_input_name;
static int id = 0;

int
xrdp_input_enable()
static int
xrdp_input_enable(void)
{
IBusEngineDesc *desc;
const gchar *name;
Expand Down Expand Up @@ -88,37 +88,38 @@ xrdp_input_send_unicode(char32_t unicode)
return 0;
}

void
static void
xrdp_input_ibus_engine_enable(IBusEngine *engine)
{
LOG(LOG_LEVEL_INFO, "xrdp_ibus_engine_enable: IM enabled");
g_engine = engine;
}

void
static void
xrdp_input_ibus_engine_disable(IBusEngine *engine)
{
LOG(LOG_LEVEL_INFO, "xrdp_ibus_engine_disable: IM disabled");
}

void
static void
xrdp_input_ibus_disconnect(IBusEngine *engine)
{
LOG(LOG_LEVEL_INFO, "xrdp_ibus_engine_disable: IM disabled");
g_object_unref(g_engine);
g_object_unref(bus);
}

gboolean engine_process_key_event_cb(IBusEngine *engine,
guint keyval,
guint keycode,
guint state)
static gboolean
engine_process_key_event_cb(IBusEngine *engine,
guint keyval,
guint keycode,
guint state)
{
/* Pass the keyboard event to system */
return FALSE;
}

IBusEngine *
static IBusEngine *
xrdp_input_ibus_create_engine(IBusFactory *factory,
gchar *engine_name,
gpointer user_data)
Expand All @@ -139,7 +140,7 @@ xrdp_input_ibus_create_engine(IBusFactory *factory,
}

/*****************************************************************************/
THREAD_RV THREAD_CC
static THREAD_RV THREAD_CC
xrdp_input_main_loop(void *in_val)
{
IBusFactory *factory;
Expand Down Expand Up @@ -190,7 +191,7 @@ xrdp_input_main_loop(void *in_val)
}

int
xrdp_input_unicode_destory()
xrdp_input_unicode_destroy(void)
{
LOG(LOG_LEVEL_DEBUG, "xrdp_input_unicode_destory: ibus input is under destory");
if (last_input_name)
Expand All @@ -210,7 +211,7 @@ xrdp_input_unicode_destory()
}

int
xrdp_input_unicode_init()
xrdp_input_unicode_init(void)
{
if (bus)
{
Expand Down

0 comments on commit 596f419

Please sign in to comment.