Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45387bbe authored by Chong Zhang's avatar Chong Zhang
Browse files

MediaCas: combine openSession methods

bug: 22804304
Change-Id: I380ed6c1fe0f79be9e05d671f9370e5eae18a351
parent 99dfb8a6
Loading
Loading
Loading
Loading
+4 −15
Original line number Diff line number Diff line
@@ -81,23 +81,12 @@ struct CasPlugin {
    virtual status_t setPrivateData(
            const CasData &privateData) = 0;

    // Open a session for descrambling a program. The session will receive the
    // ECM stream corresponding to the CA_PID for the program.
    virtual status_t openSession(
            uint16_t program_number,
            CasSessionId *sessionId) = 0;

    // Open a session for descrambling an elementary stream inside a program.
    // The session will receive the ECM stream corresponding to the CA_PID for
    // the stream.
    virtual status_t openSession(
            uint16_t program_number,
            uint16_t elementary_PID,
            CasSessionId *sessionId) = 0;
    // Open a session for descrambling a program, or one or more elementary
    // streams.
    virtual status_t openSession(CasSessionId *sessionId) = 0;

    // Close a previously opened session.
    virtual status_t closeSession(
            const CasSessionId &sessionId) = 0;
    virtual status_t closeSession(const CasSessionId &sessionId) = 0;

    // Provide the CA private data from a CA_descriptor in the program map
    // table to a CasPlugin.