dtcm: Coverity 89287
[oweals/cde.git] / cde / programs / ttsnoop / apiTracer_stubs.C.src
1 /*** DTB_USER_CODE_START vvv Add file header below vvv ***/
2 //%%  (c) Copyright 1993, 1994 Hewlett-Packard Company
3 //%%  (c) Copyright 1993, 1994 International Business Machines Corp.
4 //%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
5 //%%  (c) Copyright 1993, 1994 Novell, Inc.
6 //%%  $XConsortium: apiTracer_stubs.C.src /main/3 1995/11/06 17:10:09 rswiston $
7 /*** DTB_USER_CODE_END   ^^^ Add file header above ^^^ ***/
8
9 /*
10  * File: apiTracer_stubs.c
11  * Contains: Module callbacks and connection functions
12  *
13  * This file was generated by dtcodegen, from module apiTracer
14  *
15  * Any text may be added between the DTB_USER_CODE_START and
16  * DTB_USER_CODE_END comments (even non-C code). Descriptive comments
17  * are provided only as an aid.
18  *
19  *  ** EDIT ONLY WITHIN SECTIONS MARKED WITH DTB_USER_CODE COMMENTS.  **
20  *  ** ALL OTHER MODIFICATIONS WILL BE OVERWRITTEN. DO NOT MODIFY OR  **
21  *  ** DELETE THE GENERATED COMMENTS!                                 **
22  */
23
24 #include <stdio.h>
25 #include <Xm/Xm.h>
26 #include "dtb_utils.h"
27 #include "apiTracer_ui.h"
28
29 /*
30  * Header files for cross-module connections
31  */
32 #include "ttsnoop_ui.h"
33
34
35 /**************************************************************************
36  *** DTB_USER_CODE_START
37  ***
38  *** All necessary header files have been included.
39  ***
40  *** Add include files, types, macros, externs, and user functions here.
41  ***/
42
43 #include <Tt/tt_c.h>
44 #include "DtTt.h"
45
46 /*** DTB_USER_CODE_END
47  ***
48  *** End of user code section
49  ***
50  **************************************************************************/
51
52
53
54 void 
55 apiTracer_closeButton_CB1(
56     Widget widget,
57     XtPointer clientData,
58     XtPointer callData
59 )
60 {
61     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
62     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
63     
64     DtbApiTracerTracerInfo      instance = (DtbApiTracerTracerInfo)clientData;
65     
66     if (!(instance->initialized))
67     {
68         dtb_api_tracer_tracer_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
69     }
70     XtUnmanageChild(instance->tracer_shellform);
71     
72     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
73     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
74 }
75
76
77 void 
78 stopApiTracing(
79     Widget widget,
80     XtPointer clientData,
81     XtPointer callData
82 )
83 {
84     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
85     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
86     
87     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
88     DtbApiTracerTracerInfo instance = (DtbApiTracerTracerInfo)clientData;
89     int wasOn = tt_trace_control( -1 );
90     DtTtSetLabel( instance->cancelButton, wasOn ? "Start" : "Stop" );
91     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
92 }
93
94
95 void 
96 helpApiTracing(
97     Widget widget,
98     XtPointer clientData,
99     XtPointer callData
100 )
101 {
102     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
103     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
104     
105     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
106     _DtMan( 0, "tt_trace_control" );
107     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
108 }
109
110
111
112 /**************************************************************************
113  *** DTB_USER_CODE_START
114  ***
115  *** All automatically-generated data and functions have been defined.
116  ***
117  *** Add new functions here, or at the top of the file.
118  ***/
119
120 /*** DTB_USER_CODE_END
121  ***
122  *** End of user code section
123  ***
124  **************************************************************************/
125
126