size_t keymaps_alloced; /**< Number of keymaps dynamically allocated */
size_t functions; /**< Number of function keys */
size_t composes; /**< Number of compose definitions in actual use */
+
+ size_t keymaps_total;
+ size_t functions_total;
+ size_t composes_total;
};
/**
int lk_add_map(struct lk_ctx *ctx, unsigned int k_table);
int lk_map_exists(struct lk_ctx *ctx, unsigned int k_table);
-int lk_maps_total(struct lk_ctx *ctx);
-int lk_keys_total(struct lk_ctx *ctx, unsigned int k_table);
+int lk_get_keys_total(struct lk_ctx *ctx, unsigned int k_table);
int lk_add_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index, int keycode);
int lk_del_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
}
int
-lk_maps_total(struct lk_ctx *ctx)
-{
- return ctx->keymap->total;
-}
-
-int
-lk_keys_total(struct lk_ctx *ctx, unsigned int k_table)
+lk_get_keys_total(struct lk_ctx *ctx, unsigned int k_table)
{
struct lk_array *map;
map = lk_array_get_ptr(ctx->keymap, k_table);
res->functions = ctx->func_table->count;
res->composes = ctx->accent_table->count;
+ res->keymaps_total = ctx->keymap->total;
+ res->functions_total = ctx->func_table->total;
+ res->composes_total = ctx->accent_table->total;
+
res->keymaps_alloced = 0;
for (i = 0; i < MAX_NR_KEYMAPS; i++) {