From 07600eb0df0af099a1c055f0a6c88114f2e857bd Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 24 Jun 2024 10:21:22 -0400 Subject: Move micromamba function out of stasis_indexer.c * Adjust code in the indexer to accommodate the move. The function now expects a MicromambaInfo structure as its first argument. --- include/conda.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/conda.h') diff --git a/include/conda.h b/include/conda.h index 086a842..cea3f02 100644 --- a/include/conda.h +++ b/include/conda.h @@ -8,6 +8,20 @@ #define CONDA_INSTALL_PREFIX "conda" +struct MicromambaInfo { + char *micromamba_prefix; + char *conda_prefix; +}; + +/** + * Execute micromamba + * @param info MicromambaInfo data structure (must be populated before use) + * @param command printf-style formatter string + * @param ... variadic arguments + * @return exit code + */ +int micromamba(struct MicromambaInfo *info, char *command, ...); + /** * Execute Python * Python interpreter is determined by PATH -- cgit