From 54a8a631128beae97f6ca8f4734d69d38ff45225 Mon Sep 17 00:00:00 2001 From: mmdolze Date: Thu, 14 May 2009 18:13:29 +0000 Subject: [PATCH] Partly revert previous commit. The doxygen style escape sequences look nice on the web, but make the source comments really hard to read. Therefore copy the command descriptions preformatted to html. --- server/commands/client_commands.c | 20 ++++++-- server/commands/menu_commands.c | 76 +++++++++++++++++-------------- server/commands/screen_commands.c | 26 +++++++---- server/commands/server_commands.c | 8 +++- server/commands/widget_commands.c | 12 +++-- 5 files changed, 93 insertions(+), 49 deletions(-) diff --git a/server/commands/client_commands.c b/server/commands/client_commands.c index 15086d7..96aa563 100644 --- a/server/commands/client_commands.c +++ b/server/commands/client_commands.c @@ -53,7 +53,9 @@ test_func_func(Client *c, int argc, char **argv) * * It sends back a string of info about the server to the client. * + *\verbatim * Usage: hello + *\endverbatim * * \todo Give \em real info about the server/lcd */ @@ -82,7 +84,9 @@ hello_func(Client *c, int argc, char **argv) * * The function does not respond to the client: it simply cuts connection. * + *\verbatim * Usage: bye + *\endverbatim */ int bye_func(Client *c, int argc, char **argv) @@ -99,7 +103,9 @@ bye_func(Client *c, int argc, char **argv) /** * Sets info about the client, such as its name * - * Usage: client_set -name \ + *\verbatim + * Usage: client_set -name + *\endverbatim */ int client_set_func(Client *c, int argc, char **argv) @@ -156,7 +162,9 @@ client_set_func(Client *c, int argc, char **argv) * Tells the server the client would like to accept keypresses * of a particular type * - * Usage: client_add_key [-exclusively|-shared] {\}+ + *\verbatim + * Usage: client_add_key [-exclusively|-shared] {}+ + *\endverbatim */ int client_add_key_func(Client *c, int argc, char **argv) @@ -199,7 +207,9 @@ client_add_key_func(Client *c, int argc, char **argv) * Tells the server the client would NOT like to accept keypresses * of a particular type * - * Usage: client_del_key {\}+ + *\verbatim + * Usage: client_del_key {}+ + *\endverbatim */ int client_del_key_func(Client *c, int argc, char **argv) @@ -225,7 +235,9 @@ client_del_key_func(Client *c, int argc, char **argv) /** * Toggles the backlight, if enabled. * + *\verbatim * Usage: backlight {on|off|toggle|blink|flash} + *\endverbatim */ int backlight_func(Client *c, int argc, char **argv) @@ -271,7 +283,9 @@ backlight_func(Client *c, int argc, char **argv) /** * Sends back information about the loaded drivers. * + *\verbatim * Usage: info + *\endverbatim */ int info_func(Client *c, int argc, char **argv) diff --git a/server/commands/menu_commands.c b/server/commands/menu_commands.c index 2a7fa1d..9ad9baa 100644 --- a/server/commands/menu_commands.c +++ b/server/commands/menu_commands.c @@ -66,7 +66,9 @@ static char *argv2string(int argc, char **argv) /** * Adds an item to a menu. * - * Usage: menu_add_item \ \ \ [\] + *\verbatim + * Usage: menu_add_item [] + *\endverbatim * * You should use "" as id for the client's main menu. This menu will be * created automatically when you add an item to it the first time. @@ -223,7 +225,9 @@ menu_add_item_func(Client *c, int argc, char **argv) /** * Deletes an item from a menu * - * Usage: menu_del_item \ \ + *\verbatim + * Usage: menu_del_item + *\endverbatim * * The given item in the given menu will be deleted. If you have deleted all * the items from your client menu, that menu will automatically be removed. @@ -289,84 +293,86 @@ menu_del_item_func(Client *c, int argc, char **argv) * * For example, text displayed, value, etc... * - * Usage: menu_set_item \ \ {\}+ + *\verbatim + * Usage: menu_set_item {