Line | Branch | Exec | Source |
---|---|---|---|
1 | #ifndef COMMAND_ALIAS_H | ||
2 | #define COMMAND_ALIAS_H | ||
3 | |||
4 | #include "util/hashmap.h" | ||
5 | #include "util/macros.h" | ||
6 | |||
7 | 98 | static inline const char *find_alias(const HashMap *aliases, const char *name) | |
8 | { | ||
9 | 98 | return hashmap_get(aliases, name); | |
10 | } | ||
11 | |||
12 | void add_alias(HashMap *aliases, const char *name, const char *value) NONNULL_ARGS; | ||
13 | void remove_alias(HashMap *aliases, const char *name) NONNULL_ARGS; | ||
14 | |||
15 | #endif | ||
16 |