rename tc_arg_types to tc_data_types

This commit is contained in:
jussi 2019-10-07 20:33:27 +03:00
parent 902f84ca60
commit 6ff3f673d2
2 changed files with 3 additions and 3 deletions

View File

@ -12,13 +12,13 @@ extern "C" {
#define TC_ENOMEM (-2)
// Tagged union of data types for simulating function overloading
enum tc_arg_types {
enum tc_data_types {
TC_TYPE_INT,
TC_TYPE_STRING_ARR
};
typedef struct {
enum tc_arg_types arg_type;
enum tc_data_types arg_type;
union {
int int_arg;
char **string_arr_arg;

View File

@ -45,7 +45,7 @@ typedef struct tc_module_t {
int8_t (*init_callback)();
// Arguments for init_callback
uint8_t init_callback_argc;
enum tc_arg_types init_callback_args[TC_MAX_FUNCTION_ARGC];
enum tc_data_types init_callback_args[TC_MAX_FUNCTION_ARGC];
// Frees the internal memory of the module
int8_t (*close_callback)();