diff options
Diffstat (limited to 'tools/eos-profile-tool/eos-profile-cmds.h')
-rw-r--r-- | tools/eos-profile-tool/eos-profile-cmds.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/eos-profile-tool/eos-profile-cmds.h b/tools/eos-profile-tool/eos-profile-cmds.h index c6da7d4..1b06db5 100644 --- a/tools/eos-profile-tool/eos-profile-cmds.h +++ b/tools/eos-profile-tool/eos-profile-cmds.h @@ -5,9 +5,23 @@ typedef gboolean (* EosProfileCmdParseArgs) (int argc, char **argv); typedef int (* EosProfileCmdMain) (void); +typedef struct { + const char *name; + const char *description; + const char *usage; + + EosProfileCmdParseArgs parse_args; + EosProfileCmdMain main; +} EosProfileCmd; + +typedef gboolean (* EosProfileCmdCallback) (const EosProfileCmd *cmd, + gpointer data); + gboolean eos_profile_cmd_help_parse_args (int argc, char **argv); int eos_profile_cmd_help_main (void); gboolean eos_profile_cmd_show_parse_args (int argc, char **argv); int eos_profile_cmd_show_main (void); +void eos_profile_foreach_cmd (EosProfileCmdCallback cb, + gpointer data); |