usb_moded 0.86.0+mer64
usb_moded-devicelock.c File Reference

Go to the source code of this file.

Typedefs

typedef enum devicelock_state_t devicelock_state_t

Enumerations

enum  devicelock_state_t { DEVICELOCK_UNLOCKED = 0 , DEVICELOCK_LOCKED = 1 , DEVICELOCK_UNDEFINED = 2 }

Functions

bool devicelock_have_export_permission (void)

Detailed Description

Copyright (c) 2010 Nokia Corporation. All rights reserved. Copyright (c) 2013 - 2021 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.

Author
Philippe De Swert phili.nosp@m.ppe..nosp@m.de-sw.nosp@m.ert@.nosp@m.nokia.nosp@m..com
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Jonni Rainisto jonni.nosp@m..rai.nosp@m.nisto.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
Philippe De Swert phili.nosp@m.pped.nosp@m.eswer.nosp@m.t@gm.nosp@m.ail.c.nosp@m.om
Vesa Halttunen vesa..nosp@m.halt.nosp@m.tunen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
Jonni Rainisto jonni.nosp@m..rai.nosp@m.nisto.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com

This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file usb_moded-devicelock.c.

Typedef Documentation

◆ devicelock_state_t

Devicelock states

Enumeration Type Documentation

◆ devicelock_state_t

Devicelock states

Enumerator
DEVICELOCK_UNLOCKED 

Devicelock is not active

DEVICELOCK_LOCKED 

Devicelock is active

DEVICELOCK_UNDEFINED 

Initial startup value; from usb-moded p.o.v. equals locked

Definition at line 47 of file usb_moded-devicelock.c.

Function Documentation

◆ devicelock_have_export_permission()

bool devicelock_have_export_permission ( void )

Checks if the device is locked.

Returns
TRUE for unlocked, FALSE for locked

Definition at line 129 of file usb_moded-devicelock.c.