mirror of
https://github.com/openharmony/drivers_peripheral.git
synced 2026-08-25 02:23:31 -04:00
e25455e453
Signed-off-by: yanghaizhou <yanghaizhou1@huawei.com>
45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef CODEC_COMPONENT_MANAGER_H
|
|
#define CODEC_COMPONENT_MANAGER_H
|
|
|
|
#include "codec_component_if.h"
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#endif /* __cplusplus */
|
|
|
|
struct CodecComponentManager {
|
|
int32_t (*GetComponentNum)();
|
|
int32_t (*GetComponentCapabilityList)(CodecCompCapability *capList, int32_t count);
|
|
int32_t (*CreateComponent)(struct CodecComponentType **component, char *compName, void *appData,
|
|
int32_t appDataSize, struct CodecCallbackType *callbacks);
|
|
int32_t (*DestoryComponent)(struct CodecComponentType *component);
|
|
};
|
|
|
|
struct CodecComponentManager *GetCodecComponentManager(void);
|
|
void CodecComponentManagerRelease(void);
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* CODEC_COMPONENT_MANAGER_H */
|
|
/** @} */ |