home · contact · privacy
Client: Fit interface_conf to new config file style. Also, refactorings.
[plomrogue] / src / client / command_db.h
index 0f2ef77678ff9e39fa2eb52c1087c6b99a5d352d..09273d145274830ea2d6871168ece26c6a114f64 100644 (file)
@@ -16,7 +16,7 @@ struct Command
 {
     char * dsc_short; /* short name of command to be used internally */
     char * dsc_long; /* long description of command to be shown to the user */
-    char * server_msg; /* optionally start string of message to send to server */
+    char * server_msg; /* optionally start string of message to send to server*/
     char arg; /* defines server message suffix by player_control() convention */
 };
 
@@ -28,10 +28,12 @@ struct CommandDB
 
 
 
-/* Return Command struct for command described by its "dsc_short" member. */
-extern struct Command * get_command_data(char * dsc_short);
+/* Return Command struct for command described by its "dsc_short" member. Return
+ * NULL if no such command is found.
+ */
+extern struct Command * get_command(char * dsc_short);
 
-/* Reads CommandDB from CommandDB file, line by line, until first empty line. */
+/* Read in CommandDB config file. */
 extern void init_command_db();
 
 /* Free all memory allocated with init_command_db. */