fx: re-arrange type system to allow for reflection
This commit is contained in:
@@ -45,8 +45,8 @@ typedef struct fx_directory_entry {
|
||||
fx_file_info info;
|
||||
} fx_directory_entry;
|
||||
|
||||
FX_API fx_type fx_directory_get_type(void);
|
||||
FX_API fx_type fx_directory_iterator_get_type(void);
|
||||
FX_API fx_type_id fx_directory_get_type(void);
|
||||
FX_API fx_type_id fx_directory_iterator_get_type(void);
|
||||
|
||||
FX_API fx_result fx_directory_open(
|
||||
fx_directory *root,
|
||||
|
||||
@@ -51,7 +51,7 @@ typedef struct fx_file_info {
|
||||
size_t length;
|
||||
} fx_file_info;
|
||||
|
||||
FX_API fx_type fx_file_get_type(void);
|
||||
FX_API fx_type_id fx_file_get_type(void);
|
||||
|
||||
FX_API fx_result fx_file_open(
|
||||
FX_TYPE_FWDREF(fx_directory) * root,
|
||||
|
||||
@@ -20,7 +20,7 @@ FX_TYPE_CLASS_DECLARATION_END(fx_path)
|
||||
|
||||
struct fx_file_info;
|
||||
|
||||
FX_API fx_type fx_path_get_type(void);
|
||||
FX_API fx_type_id fx_path_get_type(void);
|
||||
|
||||
FX_TYPE_DEFAULT_CONSTRUCTOR(fx_path, FX_TYPE_PATH);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user