diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-03-09 17:35:19 +0100 |
---|---|---|
committer | rodarima <rodarima@gmail.com> | 2024-03-09 18:43:51 +0100 |
commit | 4c56214b8c2e130d3709bdca2513aef20b7b0fab (patch) | |
tree | b8cd0c6dafb5850ba116221f6f39a62e84983aa5 /src/keys.cc | |
parent | bde09c45adf0daf252fafbaf87683d3ed7eaab07 (diff) |
Use Doxygen comments for C files
Diffstat (limited to 'src/keys.cc')
-rw-r--r-- | src/keys.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/keys.cc b/src/keys.cc index 44f6acd9..a512b8ea 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -142,7 +142,7 @@ static Dlist *bindings; -/* +/** * Initialize the bindings list */ void Keys::init() @@ -163,7 +163,7 @@ void Keys::init() } } -/* +/** * Free data */ void Keys::free() @@ -178,7 +178,7 @@ void Keys::free() dList_free(bindings); } -/* +/** * Compare function by {key,modifier} pairs. */ int Keys::nodeByKeyCmp(const void *node, const void *key) @@ -188,7 +188,7 @@ int Keys::nodeByKeyCmp(const void *node, const void *key) return (n->key != k->key) ? (n->key - k->key) : (n->modifier - k->modifier); } -/* +/** * Look if the just pressed key is bound to a command. * Return value: The command if found, KEYS_NOP otherwise. */ @@ -221,7 +221,7 @@ KeysCommand_t Keys::getKeyCmd() return ret; } -/* +/** * Remove a key binding from the table. */ void Keys::delKeyCmd(int key, int mod) @@ -238,7 +238,7 @@ void Keys::delKeyCmd(int key, int mod) } } -/* +/** * Takes a key name and looks it up in the mapping table. If * found, its key code is returned. Otherwise -1 is given * back. @@ -255,7 +255,7 @@ int Keys::getKeyCode(char *keyName) return -1; } -/* +/** * Takes a command name and searches it in the mapping table. * Return value: command code if found, -1 otherwise */ @@ -270,7 +270,7 @@ KeysCommand_t Keys::getCmdCode(const char *commandName) return KEYS_INVALID; } -/* +/** * Takes a modifier name and looks it up in the mapping table. If * found, its key code is returned. Otherwise -1 is given back. */ @@ -286,7 +286,7 @@ int Keys::getModifier(char *modifierName) return -1; } -/* +/** * Given a keys command, return a shortcut for it, or 0 if there is none * (e.g., for KEYS_NEW_WINDOW, return CTRL+'n'). */ @@ -302,7 +302,7 @@ int Keys::getShortcut(KeysCommand_t cmd) return 0; } -/* +/** * Parse a key-combination/command-name pair, and * insert it into the bindings list. */ @@ -368,7 +368,7 @@ void Keys::parseKey(char *key, char *commandName) } } -/* +/** * Parse the keysrc. */ void Keys::parse(FILE *fp) |