aboutsummaryrefslogtreecommitdiff
path: root/include/conda.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 08:49:43 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 08:49:43 -0500
commit601681d88387dddda70db8601a98cb89edea1d78 (patch)
tree2868f12cd952090d62600def59a1e512522b3495 /include/conda.h
parentb9576b9bddc5887d912643f7822d13df7140c84a (diff)
downloadstasis-601681d88387dddda70db8601a98cb89edea1d78.tar.gz
Implements slightly improved error handling
* Return status from conda_ and delivery_ functions * Caller prints meaningful error, and handles it * Enable warnings during compilation * Squelch format-truncation warning -- those strings are extremely unlikely to overflow (famous last words)
Diffstat (limited to 'include/conda.h')
-rw-r--r--include/conda.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/conda.h b/include/conda.h
index bc74b94..3565bda 100644
--- a/include/conda.h
+++ b/include/conda.h
@@ -16,9 +16,9 @@ int pip_exec(const char *args);
int conda_exec(const char *args);
int conda_activate(const char *root, const char *env_name);
void conda_setup_headless();
-void conda_env_create_from_uri(char *name, char *uri);
-void conda_env_create(char *name, char *python_version, char *packages);
-void conda_env_remove(char *name);
-void conda_env_export(char *name, char *output_dir, char *output_filename);
+int conda_env_create_from_uri(char *name, char *uri);
+int conda_env_create(char *name, char *python_version, char *packages);
+int conda_env_remove(char *name);
+int conda_env_export(char *name, char *output_dir, char *output_filename);
int conda_index(const char *path);
#endif //OMC_CONDA_H