mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-28 02:43:49 -06:00
rename tc_arg_types to tc_data_types
This commit is contained in:
parent
902f84ca60
commit
6ff3f673d2
@ -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;
|
||||
|
@ -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)();
|
||||
|
Loading…
Reference in New Issue
Block a user