usb_moded 0.86.0+mer64
usb_moded-appsync.h
Go to the documentation of this file.
1
28
29#ifndef USB_MODED_APPSYNC_H_
30# define USB_MODED_APPSYNC_H_
31
32# include <stdbool.h>
33
34/* ========================================================================= *
35 * Constants
36 * ========================================================================= */
37
38# define CONF_DIR_PATH "/etc/usb-moded/run"
39# define CONF_DIR_DIAG_PATH "/etc/usb-moded/run-diag"
40
41# define APP_INFO_ENTRY "info"
42# define APP_INFO_MODE_KEY "mode"
43# define APP_INFO_NAME_KEY "name"
44# define APP_INFO_LAUNCH_KEY "launch"
45# define APP_INFO_SYSTEMD_KEY "systemd" // integer
46# define APP_INFO_POST "post" // integer
47
48/* ========================================================================= *
49 * Prototypes
50 * ========================================================================= */
51
52/* ------------------------------------------------------------------------- *
53 * APPSYNC
54 * ------------------------------------------------------------------------- */
55
59int appsync_activate_pre (const char *mode);
60int appsync_activate_post (const char *mode);
61int appsync_mark_active (const char *name, int post);
62void appsync_deactivate_pre (void);
63void appsync_deactivate_post (void);
64void appsync_deactivate_all (bool force);
65
66#endif /* USB_MODED_APPSYNC_H_ */
int appsync_mark_active(const char *name, int post)
void appsync_deactivate_pre(void)
void appsync_switch_configuration(void)
void appsync_free_configuration(void)
void appsync_deactivate_all(bool force)
int appsync_activate_post(const char *mode)
void appsync_deactivate_post(void)
void appsync_load_configuration(void)
int appsync_activate_pre(const char *mode)