From b68766967c86a6a789d65772f69f7f44939ebdf2 Mon Sep 17 00:00:00 2001 From: David Moc Date: Tue, 2 Jun 2026 14:15:25 +0200 Subject: Add API completion signatures --- include/ecex.h | 5 +++++ include/types.h | 1 + 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/ecex.h b/include/ecex.h index 085c3d2..3e0048e 100644 --- a/include/ecex.h +++ b/include/ecex.h @@ -154,7 +154,12 @@ int ecex_define_word_completion_provider(ecex_t *ed, const char *mode_name, int flags); int ecex_completion_provider_add_word(ecex_t *ed, const char *name, const char *word); +int ecex_completion_provider_add_word_detail(ecex_t *ed, + const char *name, + const char *word, + const char *detail); int ecex_completion_provider_add_words(ecex_t *ed, const char *name, const char *words); +int ecex_completion_provider_add_entries(ecex_t *ed, const char *name, const char *entries); int ecex_completion_provider_set_detail(ecex_t *ed, const char *name, const char *detail); int ecex_add_clangd_completion_provider(ecex_t *ed, const char *name, const char *mode_name); int ecex_remove_completion_provider(ecex_t *ed, const char *name); diff --git a/include/types.h b/include/types.h index 2b63ad3..008bd98 100644 --- a/include/types.h +++ b/include/types.h @@ -260,6 +260,7 @@ typedef struct ecex_completion_provider { ecex_hook_free_fn free_fn; char *detail; char **words; + char **word_details; size_t word_count; int flags; } ecex_completion_provider_t; -- cgit v1.2.3