c_api.h 796 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (c) 2019, QuantStack and Mamba Contributors
  2. //
  3. // Distributed under the terms of the BSD 3-Clause License.
  4. //
  5. // The full license is in the file LICENSE, distributed with this software.
  6. #ifndef MAMBA_API_C_API_H
  7. #define MAMBA_API_C_API_H
  8. #ifdef __cplusplus
  9. extern "C"
  10. {
  11. #endif
  12. int mamba_create();
  13. int mamba_install();
  14. int mamba_update(int update_all = 0);
  15. int mamba_remove(int remove_all = 0);
  16. int mamba_list(const char* regex = "");
  17. int mamba_info();
  18. int mamba_config_list();
  19. int mamba_set_cli_config(const char* name, const char* value);
  20. int mamba_set_config(const char* name, const char* value);
  21. int mamba_clear_config(const char* name);
  22. int mamba_use_conda_root_prefix(int force = 0);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif