]> git.sesse.net Git - vlc/commitdiff
Some documentation
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 10 Feb 2011 20:37:48 +0000 (22:37 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 10 Feb 2011 20:49:27 +0000 (22:49 +0200)
src/config/keys.c

index 790cba682cd527b383d36fbac8ad127b42e95152..cc4a8b1904a0675120e92d733786b28eb7823c9b 100644 (file)
@@ -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;