Debian Codegraph @

terps/tads/tads3/vmnetui.cpp

raw symbols SCIP
1 /* Copyright (c) 2010 by Michael J. Roberts. All Rights Reserved. */
2 /*
3 Name
4 vmnetui.cpp - TADS 3 networking, UI extensions
5 Function
6 Implements UI-related routines for the TADS 3 networking subsystem.
7 Notes
8 These routines are segregated from vmnet.cpp to untangle vmnet.cpp from
9 the VM globals. This allows that module to be used in build configurations
10 that don't include the VM globals, such as for the front-end process for
11 the stand-alone Web UI on Windows (tadsweb.exe).
12 Modified
13 04/11/10 MJRoberts - Creation
14 */
15
16
17 #include <stdlib.h>
18 #include <string.h>
19
20 #include "t3std.h"
21 #include "os.h"
22 #include "osifcnet.h"
23 #include "vmnet.h"
24 #include "vmglob.h"
25 #include "vmerr.h"
26 #include "vmtype.h"
27 #include "vmobj.h"
28 #include "vmstr.h"
29 #include "vmlst.h"
30 #include "vmisaac.h"
31 #include "sha2.h"
32 #include "vmpredef.h"
33 #include "vmhttpreq.h"
34 #include "vmglob.h"
35 #include "vmmain.h"
36 #include "vmpredef.h"
37 #include "vmerrnum.h"
38 #include "vmrun.h"
39 #include "vmfile.h"
40
41
42 /* ------------------------------------------------------------------------ */
43 /*
44 * UI Close event - prepare the event object.
45 */
46 vm_obj_id_t TadsUICloseEvent::prep_event_obj(VMG_ int *argc, int *evt_type)
47 {
48 /* we're not adding any arguments */
49 *argc = 0;
50
51 /* the event type is NetEvUIClose (4 - see include/tadsnet.h) */
52 *evt_type = 4;
53
54 /* use the basic NetEvent class */
55 return G_predef->net_event;
56 }