/home/dko/projects/mobilec/trunk/src/include/commands.h File Reference

#include "macros.h"
#include "mc_platform.h"
#include "commands.x.h"

Go to the source code of this file.


Defines

#define COMMAND(name, cmd, desc) int handler_##name (void *arg, mc_platform_p global);
#define COMMAND(name, cmd, description) COMMAND_##name ,
#define COMMAND(name, cmd, description) &handler_##name ,
#define COMMAND(name, cmd, description) description ,
#define COMMAND(name, cmd, description) cmd ,

Typedefs

typedef int(* cmd_handler_t )(void *, mc_platform_p global)

Enumerations


Variables

char * command_cmds []

Define Documentation

#define COMMAND ( name,
cmd,
description ) cmd ,

Definition at line 41 of file commands.h.

#define COMMAND ( name,
cmd,
description ) description ,

Definition at line 41 of file commands.h.

#define COMMAND ( name,
cmd,
description ) &handler_##name ,

Definition at line 41 of file commands.h.

#define COMMAND ( name,
cmd,
description ) COMMAND_##name ,

Definition at line 41 of file commands.h.

#define COMMAND ( name,
cmd,
desc ) int handler_##name (void *arg, mc_platform_p global);

Definition at line 41 of file commands.h.


Typedef Documentation

typedef int(* cmd_handler_t)(void *, mc_platform_p global)

Definition at line 45 of file commands.h.


Enumeration Type Documentation

Enumerator:
COMMAND

Definition at line 47 of file commands.h.


Variable Documentation

Initial value:

 {
#define COMMAND(name, cmd, description) 

COMMAND(QUIT, "quit", 
 "This command ends the MobileC application.")
COMMAND(HELP, "help", 
 "This command displays help for any command. Usage is:\n \
 \"help <command>\"")
COMMAND(SEND, "send", 
 "This command sends a client to a host. Usage is: \n \
 \"send <filename> <target host> <target port>\"\n \
 e.g. \"send test1.xml iel.ucdavis.edu 5155\"")
COMMAND(PRINT_CONNECTLIST,
 "print_connectlist",
 "This command prints the list entries in the connectList.")
COMMAND(PRINTLIST_MESSAGE, 
 "printlist_message",
 "This command prints all the list entries on the linked list:\n \
 message_queue")
COMMAND(PRINTLIST_AGENTS,
 "printlist_agents",
 "This command prints all the agents on the system which are still\n\
 on the agent list.\n")
 NULL 
}

Definition at line 54 of file commands.h.

Referenced by exec_command().

char* command_cmds[]

Initial value:

 {
#define COMMAND(name, cmd, description) 

COMMAND(QUIT, "quit", 
 "This command ends the MobileC application.")
COMMAND(HELP, "help", 
 "This command displays help for any command. Usage is:\n \
 \"help <command>\"")
COMMAND(SEND, "send", 
 "This command sends a client to a host. Usage is: \n \
 \"send <filename> <target host> <target port>\"\n \
 e.g. \"send test1.xml iel.ucdavis.edu 5155\"")
COMMAND(PRINT_CONNECTLIST,
 "print_connectlist",
 "This command prints the list entries in the connectList.")
COMMAND(PRINTLIST_MESSAGE, 
 "printlist_message",
 "This command prints all the list entries on the linked list:\n \
 message_queue")
COMMAND(PRINTLIST_AGENTS,
 "printlist_agents",
 "This command prints all the agents on the system which are still\n\
 on the agent list.\n")
 NULL
}

Definition at line 68 of file commands.h.

Referenced by handler_HELP(), and process_command().

Initial value:

 {
#define COMMAND(name, cmd, description) 

COMMAND(QUIT, "quit", 
 "This command ends the MobileC application.")
COMMAND(HELP, "help", 
 "This command displays help for any command. Usage is:\n \
 \"help <command>\"")
COMMAND(SEND, "send", 
 "This command sends a client to a host. Usage is: \n \
 \"send <filename> <target host> <target port>\"\n \
 e.g. \"send test1.xml iel.ucdavis.edu 5155\"")
COMMAND(PRINT_CONNECTLIST,
 "print_connectlist",
 "This command prints the list entries in the connectList.")
COMMAND(PRINTLIST_MESSAGE, 
 "printlist_message",
 "This command prints all the list entries on the linked list:\n \
 message_queue")
COMMAND(PRINTLIST_AGENTS,
 "printlist_agents",
 "This command prints all the agents on the system which are still\n\
 on the agent list.\n")
 NULL
}

Definition at line 61 of file commands.h.

Referenced by handler_HELP(), and handler_SEND().


Generated on Tue Oct 28 17:03:23 2008 for Mobile-C by doxygen 1.5.5

AltStyle によって変換されたページ (->オリジナル) /