summaryrefslogtreecommitdiff
path: root/tools/eos-profile-tool/eos-profile-cmds.h
blob: c16eded1864d76c5bee7992dcaf78b25c87ed3d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <glib.h>

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);

gboolean        eos_profile_cmd_convert_parse_args      (int argc, char **argv);
int             eos_profile_cmd_convert_main            (void);

void            eos_profile_foreach_cmd         (EosProfileCmdCallback cb,
                                                 gpointer              data);