usb_moded  0.86.0+mer57
usb_moded-appsync.h
Go to the documentation of this file.
1 
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_SYSTEMD_WAIT_KEY "systemd_wait" //interger
47 # define APP_INFO_POST "post" // integer
48 
49 /* ========================================================================= *
50  * Prototypes
51  * ========================================================================= */
52 
53 /* ------------------------------------------------------------------------- *
54  * APPSYNC
55  * ------------------------------------------------------------------------- */
56 
58 void appsync_free_configuration (void);
59 void appsync_load_configuration (void);
60 int appsync_activate_pre (const char *mode);
61 int appsync_activate_post (const char *mode);
62 int appsync_mark_active (const char *name, int post);
63 void appsync_deactivate_pre (void);
64 void appsync_deactivate_post (void);
65 void appsync_deactivate_all (bool force);
66 
67 #endif /* USB_MODED_APPSYNC_H_ */
appsync_deactivate_pre
void appsync_deactivate_pre(void)
Definition: usb_moded-appsync.c:815
appsync_mark_active
int appsync_mark_active(const char *name, int post)
Definition: usb_moded-appsync.c:708
appsync_activate_post
int appsync_activate_post(const char *mode)
Definition: usb_moded-appsync.c:562
appsync_load_configuration
void appsync_load_configuration(void)
Definition: usb_moded-appsync.c:384
appsync_free_configuration
void appsync_free_configuration(void)
Definition: usb_moded-appsync.c:351
appsync_activate_pre
int appsync_activate_pre(const char *mode)
Definition: usb_moded-appsync.c:430
appsync_switch_configuration
void appsync_switch_configuration(void)
Definition: usb_moded-appsync.c:332
appsync_deactivate_all
void appsync_deactivate_all(bool force)
Definition: usb_moded-appsync.c:842
appsync_deactivate_post
void appsync_deactivate_post(void)
Definition: usb_moded-appsync.c:824