halapi: Add new hal_common_get_backend_module_name function
[platform/hal/api/common.git] / include / hal-common.h
index 6b632bb..f4dd4c4 100644 (file)
@@ -104,6 +104,15 @@ int hal_common_get_backend_library_name(enum hal_module module, char *name, int
 int hal_common_get_backend_symbol_name(enum hal_module module, char *name, int size);
 
 /**
+ * @brief Get the backend module name according to the type of HAL module
+ * @param[in] HAL module id among enum hal_moudle
+ * @param[out] Backend module name of HAL module
+ * @param[in] Arrary size of name[]
+ * @return @c 0 on success, otherwise a negative error value
+ */
+int hal_common_get_backend_module_name(enum hal_module module, char *name, int size);
+
+/**
  * @brief Get the backend data according to the type of HAL module
  * @param[in] HAL module id among enum hal_moudle
  * @param[out] Data pointer where 'hal_backend_[module]_funcs' instance