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

Commit a30e1cbf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MediaCas: combine openSession methods" into oc-dev

parents 4a5c8a3c 45387bbe
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.