usb_moded 0.86.0+mer64
|
#include "usb_moded-worker.h"
#include "usb_moded.h"
#include "usb_moded-android.h"
#include "usb_moded-configfs.h"
#include "usb_moded-control.h"
#include "usb_moded-log.h"
#include "usb_moded-modes.h"
#include "usb_moded-modesetting.h"
#include "usb_moded-modules.h"
#include "usb_moded-appsync.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/eventfd.h>
#include <pthread.h>
#include <unistd.h>
#include <pwd.h>
#include <errno.h>
Go to the source code of this file.
Enumerations | |
enum | devstate_t { DEVSTATE_UNKNOWN , DEVSTATE_UNMOUNTED , DEVSTATE_MOUNTED } |
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 - 2022 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.c.
enum devstate_t |
Device mounting state
Enumerator | |
---|---|
DEVSTATE_UNKNOWN | Mountpoint state can't be determined |
DEVSTATE_UNMOUNTED | Mountpoint does not exist |
DEVSTATE_MOUNTED | Mountpoint does exist |
Definition at line 51 of file usb_moded-worker.c.
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 555 of file usb_moded-worker.c.
const char * worker_get_kernel_module | ( | void | ) |
get the supposedly loaded module
Definition at line 477 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 542 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 489 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 574 of file usb_moded-worker.c.