XFusion API
v1.3.0
载入中...
搜索中...
未找到
xf_template_header_detail.h
浏览该文件的文档.
1
12
#ifndef __XF_TEMPLATE_HEADER_DETAIL_H__
13
#define __XF_TEMPLATE_HEADER_DETAIL_H__
14
15
/* ==================== [Includes] ========================================== */
16
17
#include "xf_utils.h"
18
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/* ==================== [Defines] =========================================== */
27
31
#define XF_TEMPLATE_VERSION_MAJOR (1)
32
#define XF_TEMPLATE_VERSION_MINOR (0)
33
#define XF_TEMPLATE_VERSION_PATCH (0)
34
35
/* ==================== [Typedefs] ========================================== */
36
40
typedef
xf_err_t
xf_templ_err_t
;
41
46
typedef
enum
_xf_templ_err_code_t
{
47
XF_TEMPL_FAIL
=
XF_FAIL
,
48
XF_TEMPL_OK
=
XF_OK
,
50
XF_TEMPL_ERR_MAX
,
51
}
xf_templ_err_code_t
;
52
53
/* ==================== [Global Prototypes] ================================= */
54
61
xf_templ_err_t
xf_template_init
(
void
);
62
69
xf_templ_err_t
xf_template_another_func
(
void
);
70
71
/* ==================== [Global Variables] ================================== */
72
77
extern
int
g_xf_templ_global_data1_in_head
;
78
79
/* ==================== [Macros] ============================================ */
80
84
#define XF_TEMPLATE_VERSION_CHECK(major, minor, patch) \
85
((major * 10000) + (minor * 100) + patch)
86
90
#define XF_TEMPLATE_VERSION \
91
XF_TEMPLATE_VERSION_CHECK(XF_TEMPLATE_VERSION_MAJOR, \
92
XF_TEMPLATE_VERSION_MINOR, \
93
XF_TEMPLATE_VERSION_PATCH)
94
95
#ifdef __cplusplus
96
}
/* extern "C" */
97
#endif
98
99
#endif
/* __XF_TEMPLATE_HEADER_DETAIL_H__ */
xf_err_t
int32_t xf_err_t
整形错误类型。 错误码具体值见 xf_err_code_t.
Definition
xf_err.h:69
XF_FAIL
@ XF_FAIL
Definition
xf_err.h:42
XF_OK
@ XF_OK
Definition
xf_err.h:43
xf_templ_err_t
xf_err_t xf_templ_err_t
整形错误类型。
Definition
xf_template_header_detail.h:40
xf_template_init
xf_templ_err_t xf_template_init(void)
一个初始化函数。
Definition
xf_template_source_detail.c:404
xf_template_another_func
xf_templ_err_t xf_template_another_func(void)
一个函数,函数定义在 xf_template_another.c。
Definition
xf_template_source_detail_another.c:28
_xf_templ_err_code_t
_xf_templ_err_code_t
模板中的错误类型。
Definition
xf_template_header_detail.h:46
XF_TEMPL_OK
@ XF_TEMPL_OK
Definition
xf_template_header_detail.h:48
XF_TEMPL_ERR_MAX
@ XF_TEMPL_ERR_MAX
Definition
xf_template_header_detail.h:50
XF_TEMPL_FAIL
@ XF_TEMPL_FAIL
Definition
xf_template_header_detail.h:47
g_xf_templ_global_data1_in_head
int g_xf_templ_global_data1_in_head
全局变量: [Global Variables].
Definition
xf_template_source_detail.c:275
xf_templ_err_code_t
enum _xf_templ_err_code_t xf_templ_err_code_t
模板中的错误类型。
examples
misc
xf_template
main
xf_template_header_detail.h
生成于 2025年 一月 21日 星期二 17:25:09 , 为 XFusion API使用
1.9.8