1 /* 2 * Copyright (c) 2022 Shenzhen Kaihong DID Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef CODEC_COMPONENT_MANAGER_SERVICE_H 17 #define CODEC_COMPONENT_MANAGER_SERVICE_H 18 19 #include <hdf_dlist.h> 20 #include <pthread.h> 21 #include "codec_component_if.h" 22 #include "codec_component_manager_stub.h" 23 #include "codec_component_type_service.h" 24 #include "codec_internal.h" 25 #ifdef __cplusplus 26 extern "C" { 27 #endif /* __cplusplus */ 28 29 struct ComponentTypeNode { 30 uint32_t componentId; 31 struct CodecComponentType *service; 32 struct DListHead node; 33 }; 34 35 struct CodecComponentManagerSerivce { 36 struct CodecComponentManagerStub stub; 37 pthread_mutex_t listMute; 38 struct DListHead head; 39 }; 40 struct CodecComponentManagerSerivce *CodecComponentManagerSerivceGet(void); 41 void OmxComponentManagerSeriveRelease(struct CodecComponentManagerSerivce *instance); 42 #ifdef __cplusplus 43 } 44 #endif /* __cplusplus */ 45 46 #endif // CODEC_COMPONENT_MANAGER_SERVICE_H