X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafm-launch-mode.h;h=d032b6cc5a521a895eace574c2c786b0bcd0ed3e;hb=512e870e35747c6114e0dd5e0d94060b3b3cf6a5;hp=4b840ab60ff8bcdef24c1d1d68812d65970bc296;hpb=f4f91abe09bd0d3a4bc9bc06b073f1acbd374786;p=src%2Fapp-framework-main.git diff --git a/src/afm-launch-mode.h b/src/afm-launch-mode.h index 4b840ab..d032b6c 100644 --- a/src/afm-launch-mode.h +++ b/src/afm-launch-mode.h @@ -1,5 +1,5 @@ /* - Copyright 2015 IoT.bzh + Copyright 2015, 2016, 2017 IoT.bzh author: José Bollo @@ -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);