00001
00008 #include "pages.h"
00009
00011 typedef struct {
00012
00013 byte_t *cmd;
00014
00015 aw_wwwhandler_io_code_t (*header)(aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn);
00016
00017 aw_wwwhandler_io_code_t (*handler)(aw_handler_args_t *args, aw_wwwhandler_xtn_t *xtn);
00018
00019 } cmd_dispatch_t;
00020
00021 #define WEBSCMP_CMD(command_s, header_f) \
00022 { .cmd = command_s, .header = header_f, .handler = aw_wwwhandler_tx_cgipage }
00023
00024 #define WEBSCMP_FORK_CMD(command_s, header_f) \
00025 { .cmd = command_s, .header = header_f, .handler = NULL }
00026
00027
00028 static cmd_dispatch_t websmcp_cmds[] = {
00029
00030 WEBSCMP_CMD("/aware" , aw_websmcphandler_login),
00031 WEBSCMP_CMD("/login" , aw_websmcphandler_login),
00032 WEBSCMP_CMD("/loginx" , aw_websmcphandler_loginx),
00033 WEBSCMP_CMD("/logoutx" , aw_websmcphandler_logoutx),
00034
00035 WEBSCMP_CMD("/home" , aw_websmcphandler_home),
00036 WEBSCMP_CMD("/home/alerts" , aw_websmcphandler_home),
00037 WEBSCMP_CMD("/home/events" , aw_websmcphandler_home),
00038 WEBSCMP_CMD("/home/outages" , aw_websmcphandler_home),
00039
00040 WEBSCMP_CMD("/nodes" , aw_websmcphandler_nodes),
00041 WEBSCMP_CMD("/nodes/edit" , aw_websmcphandler_nodes),
00042 WEBSCMP_CMD("/nodes/nodes" , aw_websmcphandler_nodes),
00043 WEBSCMP_CMD("/nodes/services/list" , aw_websmcphandler_service_list),
00044 WEBSCMP_CMD("/nodes/groups" , aw_websmcphandler_nodes),
00045 WEBSCMP_CMD("/nodes/reports" , aw_websmcphandler_nodes),
00046 WEBSCMP_CMD("/nodes/search" , aw_websmcphandler_nodes),
00047 WEBSCMP_CMD("/nodes/discover" , aw_websmcphandler_nodes),
00048
00049 WEBSCMP_CMD("/alerts" , aw_websmcphandler_alerts),
00050
00051 WEBSCMP_CMD("/tools" , aw_websmcphandler_tools),
00052 WEBSCMP_CMD("/tools/pingframe" , aw_websmcphandler_tools_pingframe),
00053 WEBSCMP_FORK_CMD("/tools/ping" , aw_websmcphandler_tools_ping),
00054 WEBSCMP_CMD("/tools/tracerouteframe" , aw_websmcphandler_tools_tracerouteframe),
00055 WEBSCMP_FORK_CMD("/tools/traceroute" , aw_websmcphandler_tools_traceroute),
00056 WEBSCMP_CMD("/tools/dnslookupframe" , aw_websmcphandler_tools_dnslookupframe),
00057 WEBSCMP_FORK_CMD("/tools/dnslookup" , aw_websmcphandler_tools_dnslookup),
00058
00059 WEBSCMP_CMD("/admin" , aw_websmcphandler_admin),
00060 WEBSCMP_CMD("/admin/edit" , aw_websmcphandler_admin),
00061 WEBSCMP_CMD("/admin/users" , aw_websmcphandler_admin),
00062 WEBSCMP_CMD("/admin/groups" , aw_websmcphandler_admin),
00063 };
00064