1 /*
2  * Copyright (C) 2021 Huawei Device 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 GST_PLUGIN_FW_H
17 #define GST_PLUGIN_FW_H
18 
19 #include <cstdint>
20 #include <map>
21 #include <vector>
22 #include "attr_data.h"
23 #include "iosfwd"
24 #include "nocopyable.h"
25 #include "plugin_class_base.h"
26 #include "plugin_common_type.h"
27 #include "singleton.h"
28 
29 namespace OHOS {
30 namespace MultimediaPlugin {
31 class PriorityScheme;
32 
33 class GstPluginFw final : public NoCopyable {
34 public:
35     uint32_t Register(const std::vector<std::string> &canonicalPaths);
36     PluginClassBase *CreateObject(uint16_t interfaceID, const std::string &className, uint32_t &errorCode);
37     PluginClassBase *CreateObject(uint16_t interfaceID, uint16_t serviceType,
38                                   const std::map<std::string, AttrData> &capabilities,
39                                   const PriorityScheme &priorityScheme, uint32_t &errorCode);
40     uint32_t GstPluginFwGetClassInfo(uint16_t interfaceID, uint16_t serviceType,
41                           const std::map<std::string, AttrData> &capabilities,
42                           std::vector<ClassInfo> &classesInfo);
43     DECLARE_DELAYED_REF_SINGLETON(GstPluginFw);
44 };
45 } // namespace MultimediaPlugin
46 } // namespace OHOS
47 
48 #endif // GST_PLUGIN_FW_H
49