Commit 38bb4e04 authored by spiiroin's avatar spiiroin

[usb-moded] Move usb_mode structure away from header

The usb_mode structure is by design used only within usb-moded.c
source file.

Clarify the intent by not exposing the structure in a header file.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 2ad2f473
......@@ -65,6 +65,21 @@
# define VERBOSE_WAKELOCKING 0
#endif
/**
* a struct containing all the usb_moded info needed
*/
typedef struct usb_mode
{
/*@{*/
gboolean connected; /* connection status, 1 for connected */
gboolean mounted; /* mount status, 1 for mounted -UNUSED atm- */
gboolean android_usb_broken; /* Used to keep an active gadget for broken Android kernels */
char *mode; /* the mode name */
char *module; /* the module name for the specific mode */
struct mode_list_elem *data; /* contains the mode data */
/*@}*/
}usb_mode;
/* global definitions */
static int usb_moded_exitcode = EXIT_FAILURE;
......
......@@ -43,21 +43,6 @@
#define USB_MODED_LOCKFILE "/var/run/usb_moded.pid"
#define MAX_READ_BUF 512
/**
* a struct containing all the usb_moded info needed
*/
typedef struct usb_mode
{
/*@{*/
gboolean connected; /* connection status, 1 for connected */
gboolean mounted; /* mount status, 1 for mounted -UNUSED atm- */
gboolean android_usb_broken; /* Used to keep an active gadget for broken Android kernels */
char *mode; /* the mode name */
char *module; /* the module name for the specific mode */
struct mode_list_elem *data; /* contains the mode data */
/*@}*/
}usb_mode;
typedef enum mode_list_type_t {
SUPPORTED_MODES_LIST,
AVAILABLE_MODES_LIST
......
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