X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fcommand_db.h;h=bed89c433c10e467762b587d3befa52ba4fd0fde;hb=0ff9d0a37959c6f297d33c23fed0eb889114c4bc;hp=9f8206201cf10f2b1dbb4e9da105121dd0ac66f6;hpb=a8097b8fef09444ebac0f1e2d3ffc4e621557b28;p=plomrogue
diff --git a/src/client/command_db.h b/src/client/command_db.h
index 9f82062..bed89c4 100644
--- a/src/client/command_db.h
+++ b/src/client/command_db.h
@@ -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. */
+/* 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. */
+/* Reads in CommandDB config file. */
extern void init_command_db();
/* Free all memory allocated with init_command_db. */