LCOV - code coverage report
Current view: top level - include - OpenCDMSystem.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2025-07-07 09:31:15 Functions: 100.0 % 2 2

            Line data    Source code
       1              : /*
       2              :  * If not stated otherwise in this file or this component's LICENSE file the
       3              :  * following copyright and licenses apply:
       4              :  *
       5              :  * Copyright 2022 Sky UK
       6              :  *
       7              :  * Licensed under the Apache License, Version 2.0 (the "License");
       8              :  * you may not use this file except in compliance with the License.
       9              :  * You may obtain a copy of the License at
      10              :  *
      11              :  * http://www.apache.org/licenses/LICENSE-2.0
      12              :  *
      13              :  * Unless required by applicable law or agreed to in writing, software
      14              :  * distributed under the License is distributed on an "AS IS" BASIS,
      15              :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      16              :  * See the License for the specific language governing permissions and
      17              :  * limitations under the License.
      18              :  */
      19              : 
      20              : #ifndef OPENCDM_SYSTEM_H_
      21              : #define OPENCDM_SYSTEM_H_
      22              : 
      23              : #include "OpenCDMSession.h"
      24              : #include <opencdm/open_cdm.h>
      25              : #include <stdint.h>
      26              : #include <string>
      27              : #include <vector>
      28              : 
      29              : struct OpenCDMSystem
      30              : {
      31          121 :     OpenCDMSystem() = default;
      32          121 :     virtual ~OpenCDMSystem() = default;
      33              :     OpenCDMSystem(const OpenCDMSystem &) = default;
      34              :     OpenCDMSystem(OpenCDMSystem &&) = default;
      35              :     OpenCDMSystem &operator=(OpenCDMSystem &&) = default;
      36              :     OpenCDMSystem &operator=(const OpenCDMSystem &) = default;
      37              : 
      38              :     virtual const std::string &keySystem() const = 0;
      39              :     virtual const std::string &metadata() const = 0;
      40              :     virtual OpenCDMSession *createSession(const LicenseType licenseType, OpenCDMSessionCallbacks *callbacks,
      41              :                                           void *userData, const std::string &initDataType,
      42              :                                           const std::vector<uint8_t> &initData) const = 0;
      43              :     virtual bool getDrmTime(uint64_t &drmTime) const = 0;
      44              :     virtual bool getLdlSessionsLimit(uint32_t &ldlLimit) const = 0;
      45              :     virtual bool getKeyStoreHash(std::vector<unsigned char> &keyStoreHash) const = 0;
      46              :     virtual bool getDrmStoreHash(std::vector<unsigned char> &drmStoreHash) const = 0;
      47              :     virtual bool deleteKeyStore() const = 0;
      48              :     virtual bool deleteDrmStore() const = 0;
      49              :     virtual bool getMetricSystemData(std::vector<uint8_t> &buffer) const = 0;
      50              : };
      51              : 
      52              : #endif // OPENCDM_SYSTEM_H_
        

Generated by: LCOV version 2.0-1