ft_ssl/includes/internal/cli/command.h
2026-07-11 01:22:47 +02:00

26 lines
533 B
C

#ifndef FT_SSL_CMD_COMMAND_H
#define FT_SSL_CMD_COMMAND_H
#include <stddef.h>
#include <stdio.h>
#include <cli.h>
enum command_category {
CMD_DIGEST,
CMD_CIPHER
};
struct command_descriptor {
const char *name;
enum command_category category;
const struct option_descriptor *opts;
size_t nb_opts;
const void *impl;
int (*run)(int argc, char **argv, const struct command_descriptor *self);
};
const struct command_descriptor *find_command(const char *name);
void print_commands(FILE *out);
#endif