summaryrefslogtreecommitdiff
path: root/tools/eos-profile-tool/eos-profile-cmds.h
blob: c0abc5c37827eb14721de3059d749c1417b2254d (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
31
32
33
#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);

gboolean        eos_profile_cmd_diff_parse_args         (int argc, char **argv);
int             eos_profile_cmd_diff_main               (void);

void            eos_profile_foreach_cmd         (EosProfileCmdCallback cb,
                                                 gpointer              data);