/*---------------------------------------------------------------------------* * wtpman.d - LIBERO dialog data definitions for wtpman.c. * * Generated by LIBERO 2.4 on 22 Jul, 2004, 16:52. * * Schema file used: smtschm.c. * *---------------------------------------------------------------------------*/ /*- Symbolic constants and event numbers ------------------------------------*/ #define _LR_STOP 0xFFFFL #define _LR_NULL_EVENT -2 #define _LR_NULL_STATE -1 #define terminate_event -1 #define applic_event 0 #define continue_event 1 #define control_event 2 #define control_lock_event 3 #define control_report_event 4 #define control_start_event 5 #define control_stop_event 6 #define control_unlock_event 7 #define error_event 8 #define exception_event 9 #define fatal_error_event 10 #define master_event 11 #define not_found_event 12 #define ok_event 13 #define out_of_memory_event 14 #define refresh_event 15 #define request_event 16 #define server_event 17 #define server_abort_event 18 #define server_timeout_event 19 #define session_event 20 #define session_call_event 21 #define session_error_event 22 #define session_exit_event 23 #define session_return_event 24 #define session_show_event 25 #define shutdown_event 26 #define sock_closed_event 27 #define sock_error_event 28 #define suspended_event 29 #define timeout_event 30 #define wtp_connect_event 31 #define wtp_disconnect_event 32 #define wtp_do_event 33 #define wtp_done_event 34 #define wtp_error_event 35 #define wtp_ok_event 36 #define wtp_ready_event 37 #define wtp_register_event 38 #define _LR_STATE_after_init 0 #define _LR_STATE_master_thread 1 #define _LR_STATE_applic_intialise 2 #define _LR_STATE_applic_running 3 #define _LR_STATE_applic_running_control 4 #define _LR_STATE_applic_stopped 5 #define _LR_STATE_applic_stopped_control 6 #define _LR_STATE_session_waiting 7 #define _LR_STATE_session_busy 8 #define _LR_STATE_server_message 9 #define _LR_STATE_server_initialise 10 #define _LR_STATE_server_connected 11 #define _LR_STATE_server_have_request 12 #define _LR_STATE_server_expect_done 13 #define _LR_STATE_server_ready 14 #define _LR_STATE_defaults 15 #define _LR_STATE_end_thread_normal 16 #define _LR_STATE_end_thread_no_memory 17 #define _LR_defaults_state 15 /*- Function prototypes and macros ------------------------------------------*/ #ifndef MODULE #define MODULE static void /* Libero dialog modules */ #endif MODULE initialise_the_thread (THREAD *thread); MODULE load_master_config_file (THREAD *thread); MODULE open_master_log_file (THREAD *thread); MODULE create_applic_threads (THREAD *thread); MODULE initialise_application_thread (THREAD *thread); MODULE check_application_autorun (THREAD *thread); MODULE initialise_session_data (THREAD *thread); MODULE session_use_initial_program (THREAD *thread); MODULE route_wtp_request_to_server (THREAD *thread); MODULE read_server_message (THREAD *thread); MODULE decode_server_message (THREAD *thread); MODULE partial_decode_wtp_request (THREAD *thread); MODULE route_wtp_request_to_applic (THREAD *thread); MODULE free_wtp_request (THREAD *thread); MODULE http_reply_not_found (THREAD *thread); MODULE open_application_socket (THREAD *thread); MODULE start_application_servers (THREAD *thread); MODULE wait_for_socket_input (THREAD *thread); MODULE accept_server_connection (THREAD *thread); MODULE decode_wtp_request (THREAD *thread); MODULE route_wtp_request_to_session (THREAD *thread); MODULE check_applic_control_command (THREAD *thread); MODULE check_application_servers (THREAD *thread); MODULE http_reply_applic_running (THREAD *thread); MODULE close_application_socket (THREAD *thread); MODULE stop_application_servers (THREAD *thread); MODULE http_reply_stopping_applic (THREAD *thread); MODULE http_reply_applic_report (THREAD *thread); MODULE lock_application_sessions (THREAD *thread); MODULE http_reply_applic_locked (THREAD *thread); MODULE unlock_application_sessions (THREAD *thread); MODULE http_reply_applic_unlocked (THREAD *thread); MODULE http_reply_invalid_control (THREAD *thread); MODULE http_reply_applic_unavailable (THREAD *thread); MODULE http_reply_starting_applic (THREAD *thread); MODULE http_reply_applic_not_running (THREAD *thread); MODULE clear_alarms_for_thread (THREAD *thread); MODULE session_use_current_program (THREAD *thread); MODULE session_end_processing (THREAD *thread); MODULE terminate_the_thread (THREAD *thread); MODULE session_resynchronize (THREAD *thread); MODULE session_use_called_program (THREAD *thread); MODULE session_use_parent_program (THREAD *thread); MODULE session_show_html_data (THREAD *thread); MODULE session_set_timeout (THREAD *thread); MODULE session_show_application_ended (THREAD *thread); MODULE session_show_application_error (THREAD *thread); MODULE http_reply_server_timed_out (THREAD *thread); MODULE http_reply_server_aborted (THREAD *thread); MODULE wtp_send_not_expected (THREAD *thread); MODULE server_end_processing (THREAD *thread); MODULE wtp_send_invalid (THREAD *thread); MODULE signal_server_aborted (THREAD *thread); MODULE handle_server_connection (THREAD *thread); MODULE wtp_send_not_authorised (THREAD *thread); MODULE wtp_send_not_connected (THREAD *thread); MODULE handle_server_registration (THREAD *thread); MODULE handle_server_ready (THREAD *thread); MODULE take_do_request_if_any (THREAD *thread); MODULE wtp_send_do_program (THREAD *thread); MODULE server_set_timeout (THREAD *thread); MODULE server_process_is_ready (THREAD *thread); MODULE signal_server_timed_out (THREAD *thread); MODULE handle_server_done (THREAD *thread); MODULE signal_socket_error (THREAD *thread); MODULE check_thread_type (THREAD *thread); MODULE shutdown_the_application (THREAD *thread); MODULE signal_out_of_memory (THREAD *thread); MODULE signal_invalid_event (THREAD *thread); MODULE close_manager_log_file (THREAD *thread); MODULE http_reply_insufficient_resources (THREAD *thread); #define the_next_event _the_next_event #define the_exception_event _the_exception_event #define the_external_event _the_external_event #define exception_raised _exception_raised #define io_completed _io_completed /*- Static areas shared by all threads --------------------------------------*/ static word _LR_nextst [18][39] = { { 2,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,10,0,0,8,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,5,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5 ,0,0,0,0,0,0,0,0,0 }, { 0,0,4,0,0,0,0,0,0,0,0,0,0,3,0,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0 }, { 0,0,0,3,3,3,5,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0 }, { 0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,5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0,0,0,35,0 ,0,0,32,33,32,32,4,4,40,39 }, { 0,0,0,0,0,0,0,0,34,0,0,0,42,41,0,0,0,0,0,0,0,0,0,0,0,0,0,35 ,0,0,43,32,33,32,32,4,4,32,32 }, { 0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,0 ,0,0,32,33,32,44,4,4,32,32 }, { 0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,35,0 ,0,43,32,33,32,32,4,4,32,32 }, { 49,49,49,49,49,49,49,49,49,46,47,49,49,49,48,49,49,49,49,49 ,49,49,49,49,49,49,46,46,45,49,49,49,49,49,49,49,49,49,49 }, { 51,0,0,0,0,0,0,0,0,0,0,50,0,0,0,0,0,33,0,0,23,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0 }, { 51,0,0,0,0,0,0,0,0,0,0,50,0,0,0,0,0,33,0,0,52,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0 } }; static word _LR_offset [] = { 0, 0, 4, 7, 11, 14, 18, 21, 25, 26, 29, 33, 37, 39, 41, 45, 47, 50, 53, 55, 59, 64, 66, 70, 73, 75, 78, 81, 84, 88, 92, 96, 100, 104, 107, 111, 115, 119, 123, 127, 131, 134, 140, 143, 147, 150, 153, 155, 158, 161, 163, 166, 170 }; static word _LR_vector [] = { 0,1,2,_LR_STOP, 3,4,_LR_STOP, 5,6,7,_LR_STOP, 8,9,_LR_STOP, 10,11,12,_LR_STOP, 13,12,_LR_STOP, 14,15,16,_LR_STOP, _LR_STOP, 17,16,_LR_STOP, 18,19,12,_LR_STOP, 18,20,12,_LR_STOP, 21,_LR_STOP, 22,_LR_STOP, 23,24,25,_LR_STOP, 26,_LR_STOP, 27,28,_LR_STOP, 29,30,_LR_STOP, 31,_LR_STOP, 18,32,12,_LR_STOP, 33,14,15,16,_LR_STOP, 34,_LR_STOP, 35,36,7,_LR_STOP, 37,38,_LR_STOP, 39,_LR_STOP, 40,7,_LR_STOP, 41,7,_LR_STOP, 42,43,_LR_STOP, 44,37,38,_LR_STOP, 45,37,38,_LR_STOP, 46,37,38,_LR_STOP, 47,37,38,_LR_STOP, 48,8,9,_LR_STOP, 49,38,_LR_STOP, 50,8,9,_LR_STOP, 51,49,38,_LR_STOP, 52,8,9,_LR_STOP, 53,49,38,_LR_STOP, 54,49,38,_LR_STOP, 55,8,9,_LR_STOP, 56,57,_LR_STOP, 58,59,8,35,9,_LR_STOP, 35,60,_LR_STOP, 61,49,38,_LR_STOP, 62,57,_LR_STOP, 63,64,_LR_STOP, 64,_LR_STOP, 65,64,_LR_STOP, 66,64,_LR_STOP, 67,_LR_STOP, 68,38,_LR_STOP, 23,24,38,_LR_STOP, 69,38,_LR_STOP }; static HOOK *_LR_module [70] = { load_master_config_file, open_master_log_file, create_applic_threads, initialise_application_thread, check_application_autorun, initialise_session_data, session_use_initial_program, route_wtp_request_to_server, read_server_message, decode_server_message, partial_decode_wtp_request, route_wtp_request_to_applic, free_wtp_request, http_reply_not_found, open_application_socket, start_application_servers, wait_for_socket_input, accept_server_connection, decode_wtp_request, route_wtp_request_to_session, check_applic_control_command, check_application_servers, http_reply_applic_running, close_application_socket, stop_application_servers, http_reply_stopping_applic, http_reply_applic_report, lock_application_sessions, http_reply_applic_locked, unlock_application_sessions, http_reply_applic_unlocked, http_reply_invalid_control, http_reply_applic_unavailable, http_reply_starting_applic, http_reply_applic_not_running, clear_alarms_for_thread, session_use_current_program, session_end_processing, terminate_the_thread, session_resynchronize, session_use_called_program, session_use_parent_program, session_show_html_data, session_set_timeout, session_show_application_ended, session_show_application_error, http_reply_server_timed_out, http_reply_server_aborted, wtp_send_not_expected, server_end_processing, wtp_send_invalid, signal_server_aborted, handle_server_connection, wtp_send_not_authorised, wtp_send_not_connected, handle_server_registration, handle_server_ready, take_do_request_if_any, wtp_send_do_program, server_set_timeout, server_process_is_ready, signal_server_timed_out, handle_server_done, signal_socket_error, check_thread_type, shutdown_the_application, signal_out_of_memory, signal_invalid_event, close_manager_log_file, http_reply_insufficient_resources }; #if (defined (DEBUG)) static char *_LR_mname [70] = { "Load-Master-Config-File", "Open-Master-Log-File", "Create-Applic-Threads", "Initialise-Application-Thread", "Check-Application-Autorun", "Initialise-Session-Data", "Session-Use-Initial-Program", "Route-Wtp-Request-To-Server", "Read-Server-Message", "Decode-Server-Message", "Partial-Decode-Wtp-Request", "Route-Wtp-Request-To-Applic", "Free-Wtp-Request", "Http-Reply-Not-Found", "Open-Application-Socket", "Start-Application-Servers", "Wait-For-Socket-Input", "Accept-Server-Connection", "Decode-Wtp-Request", "Route-Wtp-Request-To-Session", "Check-Applic-Control-Command", "Check-Application-Servers", "Http-Reply-Applic-Running", "Close-Application-Socket", "Stop-Application-Servers", "Http-Reply-Stopping-Applic", "Http-Reply-Applic-Report", "Lock-Application-Sessions", "Http-Reply-Applic-Locked", "Unlock-Application-Sessions", "Http-Reply-Applic-Unlocked", "Http-Reply-Invalid-Control", "Http-Reply-Applic-Unavailable", "Http-Reply-Starting-Applic", "Http-Reply-Applic-Not-Running", "Clear-Alarms-For-Thread", "Session-Use-Current-Program", "Session-End-Processing", "Terminate-The-Thread", "Session-Resynchronize", "Session-Use-Called-Program", "Session-Use-Parent-Program", "Session-Show-Html-Data", "Session-Set-Timeout", "Session-Show-Application-Ended", "Session-Show-Application-Error", "Http-Reply-Server-Timed-Out", "Http-Reply-Server-Aborted", "Wtp-Send-Not-Expected", "Server-End-Processing", "Wtp-Send-Invalid", "Signal-Server-Aborted", "Handle-Server-Connection", "Wtp-Send-Not-Authorised", "Wtp-Send-Not-Connected", "Handle-Server-Registration", "Handle-Server-Ready", "Take-Do-Request-If-Any", "Wtp-Send-Do-Program", "Server-Set-Timeout", "Server-Process-Is-Ready", "Signal-Server-Timed-Out", "Handle-Server-Done", "Signal-Socket-Error", "Check-Thread-Type", "Shutdown-The-Application", "Signal-Out-Of-Memory", "Signal-Invalid-Event", "Close-Manager-Log-File", "Http-Reply-Insufficient-Resources" }; static char *_LR_sname [18] = { "After-Init", "Master-Thread", "Applic-Intialise", "Applic-Running", "Applic-Running-Control", "Applic-Stopped", "Applic-Stopped-Control", "Session-Waiting", "Session-Busy", "Server-Message", "Server-Initialise", "Server-Connected", "Server-Have-Request", "Server-Expect-Done", "Server-Ready", "Defaults", "End-Thread-Normal", "End-Thread-No-Memory" }; static char *_LR_ename [39] = { "Applic-Event", "Continue-Event", "Control-Event", "Control-Lock-Event", "Control-Report-Event", "Control-Start-Event", "Control-Stop-Event", "Control-Unlock-Event", "Error-Event", "Exception-Event", "Fatal-Error-Event", "Master-Event", "Not-Found-Event", "Ok-Event", "Out-Of-Memory-Event", "Refresh-Event", "Request-Event", "Server-Event", "Server-Abort-Event", "Server-Timeout-Event", "Session-Event", "Session-Call-Event", "Session-Error-Event", "Session-Exit-Event", "Session-Return-Event", "Session-Show-Event", "Shutdown-Event", "Sock-Closed-Event", "Sock-Error-Event", "Suspended-Event", "Timeout-Event", "Wtp-Connect-Event", "Wtp-Disconnect-Event", "Wtp-Do-Event", "Wtp-Done-Event", "Wtp-Error-Event", "Wtp-Ok-Event", "Wtp-Ready-Event", "Wtp-Register-Event" }; #else static char *_LR_mname [70] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69" }; static char *_LR_sname [18] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17" }; static char *_LR_ename [39] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38" }; #endif