support nix_register_plugin extension

support nix_register_plugin extension
This commit is contained in:
do butterflies cry? 2026-04-10 12:24:48 +10:00
parent f76658fcfb
commit eb2a5d0ec2
Signed by: cry
GPG key ID: F68745A836CA0412
3 changed files with 10 additions and 2 deletions

View file

@ -7,7 +7,7 @@
extern "C" {
nix_err nixide_register_plugin(nix_c_context * context, char * plugin)
nix_err nix_register_plugin(nix_c_context * context, char * plugin)
{
if (context)
context->last_err_code = NIX_OK;

View file

@ -8,7 +8,7 @@ extern "C" {
#endif
// NOTE: all plugins should be registered BEFORE `nix_init_plugins` is run
nix_err nixide_register_plugin(nix_c_context * context, char * plugin);
nix_err nix_register_plugin(nix_c_context * context, char * plugin);
#ifdef __cplusplus
} // extern "C"