summaryrefslogtreecommitdiff
path: root/tools/eos-profile-tool/eos-profile-cmds.h
blob: f06781c025ddc17152122b9d31dc0df4251dd827 (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
#pragma once

#include <glib.h>

typedef gboolean (* EosProfileCmdParseArgs) (int argc, char **argv);
typedef int (* EosProfileCmdMain) (void);

gboolean        eos_profile_cmd_help_parse_args (int argc, char **argv);
int             eos_profile_cmd_help_main       (void);

const struct {
  const char *name;
  const char *description;

  EosProfileCmdParseArgs parse_args;
  EosProfileCmdMain main;
} profile_commands[] = {
  {
    .name = "help",
    .description = "Prints help",
    .parse_args = eos_profile_cmd_help_parse_args,
    .main = eos_profile_cmd_help_main,
  },

  { NULL, },
};