1 /* 2 * Copyright (c) 2023 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 /** 17 * @addtogroup Drm 18 * @{ 19 * 20 * @brief Provides APIs of Drm. 21 * @since 11 22 * @version 1.0 23 */ 24 25 /** 26 * @file native_drm_base.h 27 * @brief Defines the Drm MediaKeySystem and MediaKeySession struct. 28 * @library libnative_drm.z.so 29 * @Syscap SystemCapability.Multimedia.Drm.Core 30 * @since 11 31 * @version 1.0 32 */ 33 34 #ifndef NATIVE_DRM_BASE_H 35 #define NATIVE_DRM_BASE_H 36 37 #include <stdint.h> 38 #include <stdio.h> 39 #include <refbase.h> 40 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 44 /** 45 * @brief MediaKeySystem struct. 46 * 47 * @since 11 48 * @version 1.0 49 */ 50 struct MediaKeySystem : public OHOS::RefBase { 51 MediaKeySystem() = default; 52 virtual ~MediaKeySystem() = default; 53 }; 54 55 /** 56 * @brief MediaKeySession struct. 57 * 58 * @since 11 59 * @version 1.0 60 */ 61 struct MediaKeySession : public OHOS::RefBase { 62 MediaKeySession() = default; 63 virtual ~MediaKeySession() = default; 64 }; 65 66 #ifdef __cplusplus 67 } 68 #endif 69 70 #endif // NATIVE_DRM_BASE_H