Skip to content

Commit

Permalink
[usb-moded] Move some functions defintions out of usb-moded.h
Browse files Browse the repository at this point in the history
To be able to build without depending on glib, two functions
which are now defined in usb_moded.c anyway now, have been moved
to the "correct" header file.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Oct 30, 2013
1 parent 95ae820 commit a8625f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/usb_moded-modes.h
Expand Up @@ -29,7 +29,3 @@
#define MODE_DEVELOPER "developer_mode"
#define MODE_MTP "mtp_mode"
#define MODE_CHARGER "dedicated_charger"

/* due to the use of the modelist these functions are defined in usb_moded.c */
gchar *get_mode_list(void);
int valid_mode(const char *mode);
2 changes: 2 additions & 0 deletions src/usb_moded.h
Expand Up @@ -65,5 +65,7 @@ struct mode_list_elem * get_usb_mode_data(void);
gboolean get_usb_connection_state(void);
void set_usb_connection_state(gboolean state);
void set_charger_connected(gboolean state);
gchar *get_mode_list(void);
int valid_mode(const char *mode);

#endif /* USB_MODED_H */

0 comments on commit a8625f6

Please sign in to comment.