Implement the code related to the GetMixedComponentVersion()

Change-Id: I98aad97b4cb6498b7f2fc03a2d5ee7c9e949d5f1
Signed-off-by: Chen Gong <curry.gong@amd.com>
이 커밋은 다음에 포함됨:
Chen Gong 작성하고 Galantsev, Dmitrii가 2024-09-10 10:06:44 -05:00를 커밋함
1 부모 8db404f84f
커밋 1edd04d84e
9 파일이 변경됨
+153 -1

검색과 일치하는 파일 없음

+66
파일 보기
@@ -0,0 +1,66 @@
#ifndef INCLUDE_RDC_RDC_PRIVATE_H_
#define INCLUDE_RDC_RDC_PRIVATE_H_
#include "rdc/rdc.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#ifdef __cplusplus
// cstddef include causes issues on older GCC
// use stddef.h instead
#if __GNUC__ < 9
#include <stddef.h>
#else
#include <cstddef>
#endif // __GNUC__
#include <cstdint>
#else
#include <stddef.h>
#include <stdint.h>
#endif // __cplusplus
/**
* @brief The maximum string length occupied by version information.
*/
#define USR_MAX_VERSION_STR_LENGTH 60
/**
* @brief Version information of mixed components
*/
typedef struct {
char version[USR_MAX_VERSION_STR_LENGTH];
} mixed_component_version_t;
/**
* @brief Type of Components
*/
typedef enum {
RDCD_COMPONENT
//If needed later, add them one by one
} mixed_component_t;
/**
* @brief Get ersion information of mixed components.
*
* @details Given a component type, return its version information.
*
* @param[in] p_rdc_handle The RDC handler.
*
* @param[in] component Component type.
*
* @param[out] p_mixed_compv Version information of the corresponding component.
*
* @retval ::RDC_ST_OK is returned upon successful call.
*/
rdc_status_t get_mixed_component_version(rdc_handle_t p_rdc_handle, mixed_component_t component, mixed_component_version_t* p_mixed_compv);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // INCLUDE_RDC_RDC_PRIVATE_H_