mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5849 from ethereum/libsolc-docs
Document the libsolc API
This commit is contained in:
commit
bfdeecccd8
@ -34,12 +34,25 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Callback used to retrieve additional source files. "Returns" two pointers that should be
|
/// Callback used to retrieve additional source files.
|
||||||
/// heap-allocated and are free'd by the caller.
|
///
|
||||||
|
/// "Returns" two pointers that should be heap-allocated and are free'd by the caller.
|
||||||
typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, char** o_error);
|
typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, char** o_error);
|
||||||
|
|
||||||
|
/// Returns the complete license document.
|
||||||
|
///
|
||||||
|
/// The pointer returned must not be freed by the caller.
|
||||||
char const* solidity_license() SOLC_NOEXCEPT;
|
char const* solidity_license() SOLC_NOEXCEPT;
|
||||||
|
|
||||||
|
/// Returns the compiler version.
|
||||||
|
///
|
||||||
|
/// The pointer returned must not be freed by the caller.
|
||||||
char const* solidity_version() SOLC_NOEXCEPT;
|
char const* solidity_version() SOLC_NOEXCEPT;
|
||||||
|
|
||||||
|
/// Takes a "Standard Input JSON" and an optional callback (can be set to null). Returns
|
||||||
|
/// a "Standard Output JSON". Both are to be UTF-8 encoded.
|
||||||
|
///
|
||||||
|
/// The pointer returned must not be freed by the caller.
|
||||||
char const* solidity_compile(char const* _input, CStyleReadFileCallback _readCallback) SOLC_NOEXCEPT;
|
char const* solidity_compile(char const* _input, CStyleReadFileCallback _readCallback) SOLC_NOEXCEPT;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user