apiTracer_stubs.C.src 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. * File: apiTracer_stubs.c
  10. * Contains: Module callbacks and connection functions
  11. *
  12. * This file was generated by dtcodegen, from module apiTracer
  13. *
  14. * Any text may be added between the DTB_USER_CODE_START and
  15. * DTB_USER_CODE_END comments (even non-C code). Descriptive comments
  16. * are provided only as an aid.
  17. *
  18. * ** EDIT ONLY WITHIN SECTIONS MARKED WITH DTB_USER_CODE COMMENTS. **
  19. * ** ALL OTHER MODIFICATIONS WILL BE OVERWRITTEN. DO NOT MODIFY OR **
  20. * ** DELETE THE GENERATED COMMENTS! **
  21. */
  22. #include <stdio.h>
  23. #include <Xm/Xm.h>
  24. #include "dtb_utils.h"
  25. #include "apiTracer_ui.h"
  26. /*
  27. * Header files for cross-module connections
  28. */
  29. #include "ttsnoop_ui.h"
  30. /**************************************************************************
  31. *** DTB_USER_CODE_START
  32. ***
  33. *** All necessary header files have been included.
  34. ***
  35. *** Add include files, types, macros, externs, and user functions here.
  36. ***/
  37. #include <Tt/tt_c.h>
  38. #include "DtTt.h"
  39. /*** DTB_USER_CODE_END
  40. ***
  41. *** End of user code section
  42. ***
  43. **************************************************************************/
  44. void
  45. apiTracer_closeButton_CB1(
  46. Widget widget,
  47. XtPointer clientData,
  48. XtPointer callData
  49. )
  50. {
  51. /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
  52. /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
  53. DtbApiTracerTracerInfo instance = (DtbApiTracerTracerInfo)clientData;
  54. if (!(instance->initialized))
  55. {
  56. dtb_api_tracer_tracer_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
  57. }
  58. XtUnmanageChild(instance->tracer_shellform);
  59. /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
  60. /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
  61. }
  62. void
  63. stopApiTracing(
  64. Widget widget,
  65. XtPointer clientData,
  66. XtPointer callData
  67. )
  68. {
  69. /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
  70. /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
  71. /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
  72. DtbApiTracerTracerInfo instance = (DtbApiTracerTracerInfo)clientData;
  73. int wasOn = tt_trace_control( -1 );
  74. DtTtSetLabel( instance->cancelButton, wasOn ? "Start" : "Stop" );
  75. /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
  76. }
  77. void
  78. helpApiTracing(
  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. /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
  87. _DtMan( 0, "tt_trace_control" );
  88. /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
  89. }
  90. /**************************************************************************
  91. *** DTB_USER_CODE_START
  92. ***
  93. *** All automatically-generated data and functions have been defined.
  94. ***
  95. *** Add new functions here, or at the top of the file.
  96. ***/
  97. /*** DTB_USER_CODE_END
  98. ***
  99. *** End of user code section
  100. ***
  101. **************************************************************************/