RpmOstreeCommand: Remove unused 'flags' member
There are currently no command flags defined, but if we need any they would likely be passed to the custom GOptionContext parse function as in OSTree.
This commit is contained in:
parent
ae37329f99
commit
b827a398a7
12
src/main.c
12
src/main.c
@ -34,13 +34,13 @@
|
|||||||
|
|
||||||
static RpmOstreeCommand commands[] = {
|
static RpmOstreeCommand commands[] = {
|
||||||
#ifdef HAVE_COMPOSE_TOOLING
|
#ifdef HAVE_COMPOSE_TOOLING
|
||||||
{ "compose", rpmostree_builtin_compose, 0 },
|
{ "compose", rpmostree_builtin_compose },
|
||||||
#endif
|
#endif
|
||||||
{ "upgrade", rpmostree_builtin_upgrade, 0 },
|
{ "upgrade", rpmostree_builtin_upgrade },
|
||||||
{ "rebase", rpmostree_builtin_rebase, 0 },
|
{ "rebase", rpmostree_builtin_rebase },
|
||||||
{ "rollback", rpmostree_builtin_rollback, 0 },
|
{ "rollback", rpmostree_builtin_rollback },
|
||||||
{ "status", rpmostree_builtin_status, 0 },
|
{ "status", rpmostree_builtin_status },
|
||||||
{ "rpm", rpmostree_builtin_rpm, 0 },
|
{ "rpm", rpmostree_builtin_rpm },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ G_BEGIN_DECLS
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
gboolean (*fn) (int argc, char **argv, GCancellable *cancellable, GError **error);
|
gboolean (*fn) (int argc, char **argv, GCancellable *cancellable, GError **error);
|
||||||
int flags;
|
|
||||||
} RpmOstreeCommand;
|
} RpmOstreeCommand;
|
||||||
|
|
||||||
#define BUILTINPROTO(name) gboolean rpmostree_builtin_ ## name (int argc, char **argv, GCancellable *cancellable, GError **error)
|
#define BUILTINPROTO(name) gboolean rpmostree_builtin_ ## name (int argc, char **argv, GCancellable *cancellable, GError **error)
|
||||||
|
Loading…
Reference in New Issue
Block a user