You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/fw_info.rst
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,8 @@ To create an EXT_API, complete the following steps:
126
126
127
127
.. code-block:: c
128
128
129
+
typedef int (*my_ext_api_foo_t)(bool arg1, int *arg2);
130
+
129
131
struct my_ext_api {
130
132
struct fw_info_ext_api header;
131
133
struct {
@@ -152,12 +154,6 @@ To create an EXT_API, complete the following steps:
152
154
};
153
155
#endif
154
156
155
-
#. To include function pointers in your EXT_API, call the :c:macro:`EXT_API_FUNCTION` macro to forward-declare the function and create a typedef for the function pointer:
156
-
157
-
.. code-block:: c
158
-
159
-
EXT_API_FUNCTION(int, my_ext_api_foo, bool arg1, int *arg2);
0 commit comments