diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-15 11:10:27 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-15 11:28:07 +0100 |
commit | dc4d29d0b8c3393ab8ba85b6278fd231b1191509 (patch) | |
tree | 79fb4e6faf4e24d57160795ebacd5f2f376b1ecf /src/afm-launch-mode.h | |
parent | fc453a43f14a50a2b4dc1f332649ce4bc13af1fa (diff) |
afm-launch: comments and improvements
Change-Id: I1b0745dfe659d26efdcd686b117fd7d64ed3a440
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-launch-mode.h')
-rw-r--r-- | src/afm-launch-mode.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/afm-launch-mode.h b/src/afm-launch-mode.h index 4b840ab..f845d40 100644 --- a/src/afm-launch-mode.h +++ b/src/afm-launch-mode.h @@ -22,11 +22,11 @@ enum afm_launch_mode { mode_remote = 2 }; -#define default_launch_mode mode_local +extern int is_valid_launch_mode(enum afm_launch_mode mode); -#define launch_mode_is_valid(x) ((x)==mode_local || (x)==mode_remote) -#define is_valid_launch_mode(x) ((x)==mode_local || (x)==mode_remote) +extern enum afm_launch_mode get_default_launch_mode(); +extern void set_default_launch_mode(enum afm_launch_mode mode); -enum afm_launch_mode launch_mode_of_string(const char *s); -const char *name_of_launch_mode(enum afm_launch_mode m); +extern enum afm_launch_mode launch_mode_of_name(const char *name); +extern const char *name_of_launch_mode(enum afm_launch_mode mode); |