NERoom SDK V1.40.0
载入中...
搜索中...
未找到
extension_service_interface.h
浏览该文件的文档.
1// Copyright (c) 2025 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
11 #ifndef EXTENSION_SERVICE_INTERFACE_H
12 #define EXTENSION_SERVICE_INTERFACE_H
13
15 #include "base_type_defines.h"
16 #include "error_code_defines.h"
17
18 namespace neroom {
19
21
22 public:
27
31 virtual ~INEExtensionService() = default;
32
39 virtual int loadExtension(NERoomExtensionType type, const std::string& path = "") = 0;
40
48 virtual int enableExtension(NERoomExtensionType type, bool enable = true, void* value = nullptr) = 0;
49 };
50
51 } // namespace neroom
52
53 #endif // EXTENSION_SERVICE_INTERFACE_H
54
基础服务接口头文件
基本类型定义头文件
virtual int loadExtension(NERoomExtensionType type, const std::string &path="")=0
加载扩展
virtual int enableExtension(NERoomExtensionType type, bool enable=true, void *value=nullptr)=0
启用扩展
virtual ~INEExtensionService()=default
析构函数
INEExtensionService()=default
构造函数
错误码定义头文件
enum tagNERoomExtensionType { kNERoomExtensionTypeVirtualBackground=1, } NERoomExtensionType
扩展类型