MediaConnection: Remove Reset()

This commit is contained in:
Dario Casalinuovo
2016-11-26 17:24:10 +01:00
parent 9ee6577e2d
commit 05e29ea1ad
5 changed files with 9 additions and 32 deletions
-1
View File
@@ -174,7 +174,6 @@ protected:
// Called from BMediaConnection
status_t DisconnectConnection(BMediaConnection* conn);
status_t ResetConnection(BMediaConnection* conn);
status_t ReleaseConnection(BMediaConnection* conn);
private:
+3 -7
View File
@@ -91,18 +91,14 @@ public:
void SetCookie(void* cookie);
void* Cookie() const;
// Disconnect this connection.
// Disconnect this connection. When a connection is disconnected,
// it can be reused as brand new.
status_t Disconnect();
// TODO: We really need a Reset()?
// When you reset a connection it can be reused as it was brand new.
status_t Reset();
// Once you are done with this connection you release it, it automatically
// remove the object from the BMediaClient and free all used resources.
// This will make the connection to disappear completely, so if you
// want to preserve it for future connections just Disconnect() and
// Reset() it.
// want to preserve it for future connections just Disconnect() it.
status_t Release();
// Use this to set your callbacks.