edfb3e24a3
bshell: the front-end binary bshell.runtime: contains the parser, compiler, and classes needed to run bshell scripts bshell.core: contains the builtin commandlets and aliases
36 lines
802 B
C
36 lines
802 B
C
#ifndef BSHELL_COMMAND_ALIAS_H_
|
|
#define BSHELL_COMMAND_ALIAS_H_
|
|
|
|
#include "../verb.h"
|
|
|
|
#include <fx/macros.h>
|
|
#include <fx/string.h>
|
|
|
|
FX_DECLS_BEGIN;
|
|
|
|
struct bshell_runtime;
|
|
|
|
#define BSHELL_TYPE_ALIAS (bshell_alias_get_type())
|
|
|
|
FX_DECLARE_TYPE(bshell_alias);
|
|
|
|
FX_TYPE_CLASS_DECLARATION_BEGIN(bshell_alias)
|
|
const char *a_callable_name;
|
|
const char *a_target_name;
|
|
const char *(*a_get_callable_name)(const bshell_alias *);
|
|
const char *(*a_get_target_name)(const bshell_alias *);
|
|
FX_TYPE_CLASS_DECLARATION_END(bshell_alias)
|
|
|
|
extern fx_type_id bshell_alias_get_type(void);
|
|
|
|
extern enum bshell_status bshell_alias_get_callable_name(
|
|
const bshell_alias *alias,
|
|
fx_string *out);
|
|
extern enum bshell_status bshell_alias_get_target_name(
|
|
const bshell_alias *alias,
|
|
fx_string *out);
|
|
|
|
FX_DECLS_END;
|
|
|
|
#endif
|