Skip to content

Commit

Permalink
chore(linux): Rename kbp_state_get_intermediate_context to `km_core…
Browse files Browse the repository at this point in the history
…_...`

A previous rename missed this.
  • Loading branch information
ermshiperete committed Oct 16, 2023
1 parent 3212faf commit 965b8e5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions core/include/keyman/keyman_core_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ km_core_state_context(km_core_state *state);

/*
```
### `kbp_state_get_intermediate_context`
### `km_core_state_get_intermediate_context`
##### Description:
Get access to the state object's keyboard processor's intermediate context. This context
is used during an IMX callback, part way through processing a keystroke.
Expand All @@ -950,7 +950,7 @@ to `km_core_context_items_dispose`.
*/
KMN_API
km_core_status
kbp_state_get_intermediate_context(km_core_state *state, km_core_context_item ** context_items);
km_core_state_get_intermediate_context(km_core_state *state, km_core_context_item ** context_items);

/*
```
Expand Down
2 changes: 1 addition & 1 deletion core/src/km_core_state_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ km_core_context *km_core_state_context(km_core_state *state)
return static_cast<km_core_context *>(&state->context());
}

km_core_status kbp_state_get_intermediate_context(
km_core_status km_core_state_get_intermediate_context(
km_core_state *state,
km_core_context_item ** context_items
) {
Expand Down
4 changes: 2 additions & 2 deletions core/tests/unit/kmx/kmx_imx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ uint8_t test_imx_callback(km_core_state *state, uint32_t imx_id, void *callback_

// Test get intermediate context
km_core_context_item *entry_context = nullptr;
kbp_state_get_intermediate_context(state, &entry_context);
km_core_state_get_intermediate_context(state, &entry_context);

size_t n = 0;
try_status(km_core_context_items_to_utf16(entry_context, nullptr, &n))
Expand Down Expand Up @@ -142,7 +142,7 @@ uint8_t test_imx_callback(km_core_state *state, uint32_t imx_id, void *callback_
}
// Test Exit Context
km_core_context_item *exit_context = nullptr;
kbp_state_get_intermediate_context(state, &exit_context);
km_core_state_get_intermediate_context(state, &exit_context);

n = 0;
try_status(km_core_context_items_to_utf16(exit_context, nullptr, &n))
Expand Down
2 changes: 1 addition & 1 deletion linux/debian/libkmnkbp0-0.symbols
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
libkmnkbp0.so.0 libkmnkbp0-0 #MINVER#
* Build-Depends-Package: libkmnkbp-dev

kbp_state_get_intermediate_context@Base 15.0
km_core_state_get_intermediate_context@Base 17.0.193
km_core_context_append@Base 15.0
km_core_context_clear@Base 15.0
km_core_context_get@Base 15.0
Expand Down
6 changes: 3 additions & 3 deletions windows/src/engine/keyman32/calldll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ LogContext(km_core_state *lpCoreKeyboardState, uint8_t context_type) {
log_str_title = int_context;
break;
case CONTEXT_INT:
error_status = (km_core_status_codes)kbp_state_get_intermediate_context(lpCoreKeyboardState, &citems);
error_status = (km_core_status_codes)km_core_state_get_intermediate_context(lpCoreKeyboardState, &citems);
log_str_title = core_context;
break;
default:
Expand Down Expand Up @@ -318,7 +318,7 @@ extern "C" BOOL _declspec(dllexport) WINAPI KMSetOutput(PWSTR buf, DWORD backlen
// correctly. To do this need to check the context as we process the
// backspaces.
km_core_context_item *citems = nullptr;
if (KM_CORE_STATUS_OK != kbp_state_get_intermediate_context(_td->lpActiveKeyboard->lpCoreKeyboardState, &citems)) {
if (KM_CORE_STATUS_OK != km_core_state_get_intermediate_context(_td->lpActiveKeyboard->lpCoreKeyboardState, &citems)) {
delete[] actionItems;
return FALSE;
}
Expand Down Expand Up @@ -428,7 +428,7 @@ extern "C" BOOL _declspec(dllexport) WINAPI KMGetContext(PWSTR buf, DWORD len)
}

km_core_context_item *citems = nullptr;
if (KM_CORE_STATUS_OK != kbp_state_get_intermediate_context(_td->lpActiveKeyboard->lpCoreKeyboardState, &citems)) {
if (KM_CORE_STATUS_OK != km_core_state_get_intermediate_context(_td->lpActiveKeyboard->lpCoreKeyboardState, &citems)) {
return FALSE;
}

Expand Down

0 comments on commit 965b8e5

Please sign in to comment.