function module' interface defined

This commit is contained in:
2021-04-29 18:59:08 +02:00
parent 87bad32300
commit 6923bec289

View File

@@ -2,5 +2,18 @@
#include <stdint.h>
#include <string>
const uint32_t function_create(const std::string name);
void function_parameter_add(const uint32_t id, const std::string name, const )
// Register a new function. Returns false if a function with the same name already exists
const bool function_register(const std::string name, const uint32_t address);
// Add a parameter to the last registered function
void function_parameter_add(const std::string name, const int type);
// Retrieve the address of the specified function, or zero if there's no such function
const uint32_t function_get_address(const std::string name);
// Retrieve the number of parameters of the last searched function
const int function_get_num_parameters();
// Retrieve the type of the nth parameter of the last searched function
const int function_get_parameter_type(const int index);