mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -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)
|
#define TC_ENOMEM (-2)
|
||||||
|
|
||||||
// Tagged union of data types for simulating function overloading
|
// Tagged union of data types for simulating function overloading
|
||||||
enum tc_arg_types {
|
enum tc_data_types {
|
||||||
TC_TYPE_INT,
|
TC_TYPE_INT,
|
||||||
TC_TYPE_STRING_ARR
|
TC_TYPE_STRING_ARR
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
enum tc_arg_types arg_type;
|
enum tc_data_types arg_type;
|
||||||
union {
|
union {
|
||||||
int int_arg;
|
int int_arg;
|
||||||
char **string_arr_arg;
|
char **string_arr_arg;
|
||||||
|
@ -45,7 +45,7 @@ typedef struct tc_module_t {
|
|||||||
int8_t (*init_callback)();
|
int8_t (*init_callback)();
|
||||||
// Arguments for init_callback
|
// Arguments for init_callback
|
||||||
uint8_t init_callback_argc;
|
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
|
// Frees the internal memory of the module
|
||||||
int8_t (*close_callback)();
|
int8_t (*close_callback)();
|
||||||
|
Loading…
Reference in New Issue
Block a user