summaryrefslogtreecommitdiffstats
path: root/camera/inc/BaseCameraAdapter.h
diff options
context:
space:
mode:
Diffstat (limited to 'camera/inc/BaseCameraAdapter.h')
-rw-r--r--camera/inc/BaseCameraAdapter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/inc/BaseCameraAdapter.h b/camera/inc/BaseCameraAdapter.h
index a11ea1d..d778491 100644
--- a/camera/inc/BaseCameraAdapter.h
+++ b/camera/inc/BaseCameraAdapter.h
@@ -59,6 +59,9 @@ public:
//Retrieves the next Adapter state
virtual AdapterState getNextState();
+ // Rolls the state machine back to INTIALIZED_STATE from the current state
+ virtual status_t rollbackToInitializedState();
+
protected:
//The first two methods will try to switch the adapter state.
//Every call to setState() should be followed by a corresponding
@@ -163,6 +166,7 @@ private:
status_t __sendFrameToSubscribers(CameraFrame* frame,
KeyedVector<int, frame_callback> *subscribers,
CameraFrame::FrameType frameType);
+ status_t rollbackToPreviousState();
// protected data types and variables
protected: