Commit 545635d4 authored by hudson@kremvax.wan's avatar hudson@kremvax.wan
Browse files

Added gui_lock/gui_unlock() to release GUI when under PTP control

parent 8171627b5ddf
......@@ -209,6 +209,25 @@ gui_control(
);
/** Lock the camera interface.
* The USB device does this when it starts up; call with parameters
* (0, 1, 2) to unlock it. The meaning is unknown.
*/
extern void
gui_lock(
unsigned arg0,
unsigned arg1,
unsigned arg2
);
static inline void
gui_unlock( void )
{
gui_lock( 0, 1, 2 );
}
struct gui_struct
{
......
......@@ -158,6 +158,9 @@ NSTUB( 0xFF88D810, gui_change_shoot_type_post )
NSTUB( 0xFF88D8A8, gui_change_lcd_state_post )
/** @} */
/** Called by ptpRequestCamStateForUSBDisConnect() */
NSTUB( 0xFF913F48, gui_lock )
/** Look for the call in CreateDialog */
NSTUB( 0xFFA5446C, gui_task_create )
NSTUB( 0xFFA5458C, gui_task_destroy )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment