Adopt the GigabyteLib parameter annotation style

Compared with 2a3ad7a:

- replace Microsoft SAL annotations in the public capture and debug headers with GVFG_PARAM_IN, GVFG_PARAM_OUT, and GVFG_PARAM_INOUT

- remove the explicit sal.h include and the non-MSVC SAL compatibility block

- guard the lightweight parameter macros so the public header can coexist with the supervisor-provided framework header

- include gvfgsdkapi.h first inside the private Gigabyte capture session to reuse the vendor definitions without redefinition warnings

- preserve every API signature, ABI layout, export, and runtime behavior
This commit is contained in:
Mark.lin
2026-09-14 12:23:10 +08:00
parent 2a3ad7aa6d
commit 90af75cdd1
3 changed files with 92 additions and 110 deletions
+9 -9
View File
@@ -64,20 +64,20 @@ typedef struct
* applications should use gvfg_get_channel_runtime_info() instead.
*/
GVFG_API gvfg_status_t gvfg_debug_get_channel_backend_stats(
_In_ gvfg_handle handle,
_In_ int channel_index,
_Out_ gvfg_debug_backend_stats_t *out_stats);
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN int channel_index,
GVFG_PARAM_OUT gvfg_debug_backend_stats_t *out_stats);
/* GIGABYTELIB GAP: GvfgSdk.lib 1.0.0 has no register-access API. */
GVFG_API gvfg_status_t gvfg_debug_read_register(
_In_ gvfg_handle handle,
_In_ uint32_t offset,
_Out_ uint32_t *out_value);
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN uint32_t offset,
GVFG_PARAM_OUT uint32_t *out_value);
GVFG_API gvfg_status_t gvfg_debug_write_register(
_In_ gvfg_handle handle,
_In_ uint32_t offset,
_In_ uint32_t value);
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN uint32_t offset,
GVFG_PARAM_IN uint32_t value);
#ifdef __cplusplus
}