4coder/4ed_api_definition.h

70 lines
1.1 KiB
C
Raw Normal View History

2019-10-03 23:00:31 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 03.10.2019
*
* System API definition types.
*
*/
// TOP
#if !defined(FRED_API_DEFINITION_H)
#define FRED_API_DEFINITION_H
struct API_Param{
API_Param *next;
String_Const_u8 type_name;
String_Const_u8 name;
};
struct API_Param_List{
API_Param *first;
API_Param *last;
i32 count;
};
struct API_Call{
API_Call *next;
String_Const_u8 name;
String_Const_u8 return_type;
2019-10-07 03:09:21 +00:00
String_Const_u8 location_string;
2019-10-03 23:00:31 +00:00
API_Param_List params;
};
struct API_Definition{
API_Definition *next;
API_Call *first;
API_Call *last;
i32 count;
String_Const_u8 name;
};
struct API_Definition_List{
API_Definition *first;
API_Definition *last;
i32 count;
};
2019-10-05 02:48:05 +00:00
typedef u32 API_Generation_Flag;
enum{
APIGeneration_NoAPINameOnCallables = 1,
};
2019-10-07 03:09:21 +00:00
typedef u32 API_Check_Flag;
enum{
APICheck_ReportMissingAPI = 1,
APICheck_ReportExtraAPI = 2,
APICheck_ReportMismatchAPI = 4,
};
enum{
APICheck_ReportAll = APICheck_ReportMissingAPI|APICheck_ReportExtraAPI|APICheck_ReportMismatchAPI,
};
2019-10-03 23:00:31 +00:00
#endif
// BOTTOM