usb_moded
0.86.0+mer57
|
#include "usb_moded-dyn-config.h"
Go to the source code of this file.
Functions | |
const char * | worker_get_kernel_module (void) |
bool | worker_set_kernel_module (const char *module) |
const modedata_t * | worker_get_usb_mode_data (void) |
modedata_t * | worker_dup_usb_mode_data (void) |
void | worker_set_usb_mode_data (const modedata_t *data) |
Copyright (c) 2013 - 2021 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.
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-worker.h.
modedata_t* worker_dup_usb_mode_data | ( | void | ) |
get clone of the usb mode data
Caller must release the returned object via modedata_free().
Definition at line 554 of file usb_moded-worker.c.
const char* worker_get_kernel_module | ( | void | ) |
get the supposedly loaded module
Definition at line 476 of file usb_moded-worker.c.
const modedata_t* worker_get_usb_mode_data | ( | void | ) |
get the usb mode data
Note: This function should be called only from the worker thread.
Definition at line 541 of file usb_moded-worker.c.
bool worker_set_kernel_module | ( | const char * | module | ) |
set the loaded module
module | The module name for the requested mode |
Definition at line 488 of file usb_moded-worker.c.
void worker_set_usb_mode_data | ( | const modedata_t * | data | ) |
set the modedata_t data
Note: This function should be called only from the worker thread,
data | mode_list_element pointer |
Definition at line 573 of file usb_moded-worker.c.