diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-07 12:56:58 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-07 12:56:58 -0400 |
commit | e3be6e430a726a28de4c342e81ce7ac34448de8e (patch) | |
tree | f365a5fdf1e56855fbccf6b1606050b8f29893c5 | |
parent | 2348de4365967a7cf18400213a5a84e4da7f0491 (diff) | |
download | stasis-e3be6e430a726a28de4c342e81ce7ac34448de8e.tar.gz |
Fix/add header documentationfix-bare-package-arguments
-rw-r--r-- | include/conda.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/conda.h b/include/conda.h index 565b7c9..b26c7a3 100644 --- a/include/conda.h +++ b/include/conda.h @@ -186,15 +186,18 @@ int conda_index(const char *path); /** * Determine whether a simple index contains a package * @param index_url a file system path or url pointing to a simple index - * @param name package name (required) - * @param version package version (may be NULL) + * @param spec a pip package specification (e.g. `name==1.2.3`) * @return not found = 0, found = 1, error = -1 */ int pip_index_provides(const char *index_url, const char *spec); -char *conda_get_active_environment(); - +/** + * Determine whether conda can find a package in its channel list + * @param spec a conda package specification (e.g. `name=1.2.3`) + * @return not found = 0, found = 1, error = -1 + */ int conda_provides(const char *spec); +char *conda_get_active_environment(); #endif //STASIS_CONDA_H |