lean2/src/api/lean_module.h
2015-08-23 08:54:11 -07:00

42 lines
955 B
C

/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#ifndef _LEAN_MODULE_H
#define _LEAN_MODULE_H
#ifdef __cplusplus
extern "C" {
#endif
/**
\defgroup capi C API
*/
/*@{*/
/**
@name Module API
*/
/*@{*/
/** \brief Import the given modules (i.e., pre-compiled .olean files) */
lean_bool lean_env_import(lean_env env, lean_ios ios, lean_list_name modules, lean_env * r, lean_exception * ex);
/** \brief Export to the given file name the declarations added to the environment */
lean_bool lean_env_export(lean_env env, char const * fname, lean_exception * ex);
/** \brief Store in \c r the LEAN_PATH */
lean_bool lean_get_std_path(char const ** r, lean_exception * ex);
/** \brief Store in \c r the HLEAN_PATH */
lean_bool lean_get_hott_path(char const ** r, lean_exception * ex);
/*@}*/
/*@}*/
#ifdef __cplusplus
};
#endif
#endif