libcamera: media_device: Make open() and close() private

All external callers to open() and close() have been refactored and
there is no need to expose these functions anymore, make them private.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2019-04-14 00:43:38 +02:00
parent 9c1fe51ebc
commit 1657291f58
2 changed files with 52 additions and 52 deletions
+3 -3
View File
@@ -30,9 +30,6 @@ public:
void release();
bool busy() const { return acquired_; }
int open();
void close();
int populate();
bool valid() const { return valid_; }
@@ -62,6 +59,9 @@ private:
bool valid_;
bool acquired_;
int open();
void close();
std::map<unsigned int, MediaObject *> objects_;
MediaObject *object(unsigned int id);
bool addObject(MediaObject *object);