[vlc-commits] Some documentation

Rémi Denis-Courmont git at videolan.org
Thu Feb 10 21:49:32 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 10 22:37:48 2011 +0200| [1b3b2112e07b8df54ec4a0920b2194dfc5033135] | committer: Rémi Denis-Courmont

Some documentation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b3b2112e07b8df54ec4a0920b2194dfc5033135
---

 src/config/keys.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/config/keys.c b/src/config/keys.c
index 790cba6..cc4a8b1 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -176,6 +176,11 @@ uint_fast32_t ConfigStringToKey (const char *name)
     return (vlc_towc (name, &cp) > 0) ? (mods | cp) : KEY_UNSET;
 }
 
+/**
+ * Format a human-readable and unique representation of a VLC key code
+ * (including modifiers).
+ * @return a heap-allocated string, or NULL on error.
+ */
 char *vlc_keycode2str (uint_fast32_t code)
 {
     char *str, buf[5];
@@ -210,7 +215,7 @@ static int keycmp (const void *a, const void *b)
 }
 
 /**
- * Get the action associated with a VLC key code, if any.
+ * Get the action ID associated with a VLC key code, if any.
  */
 static
 vlc_key_t vlc_TranslateKey (const vlc_object_t *obj, uint_fast32_t keycode)
@@ -293,6 +298,10 @@ static int actcmp(const void *key, const void *ent)
     return strcmp(key, act->name);
 }
 
+/**
+ * Get the action ID from the action name in the configuration subsystem.
+ * @return the action ID or ACTIONID_NONE on error.
+ */
 vlc_key_t vlc_GetActionId(const char *name)
 {
     const struct action *act;



More information about the vlc-commits mailing list