home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xyzext.zip / xyz / include / xyzext.h < prev    next >
C/C++ Source or Header  |  1992-07-18  |  2KB  |  114 lines

  1.  
  2. #ifndef _XYZEXT_H_
  3. #define _XYZEXT_H_
  4.  
  5. #define X_XYZ_Trace 0
  6. #define X_XYZ_Instrument 1
  7. #define X_XYZ_SetCurTraceLevel 2
  8. #define X_XYZ_QueryState 3
  9. #define X_XYZ_GetTag 4
  10. #define X_XYZ_SetValue 5
  11. #define X_XYZ_SetTraceLevel 6
  12. #define X_XYZ_ListValues 7
  13. #define X_XYZ_ResetValues 8
  14. #define X_XYZ_ResetTraceLevels 9
  15.  
  16. #define XYZ_NumberEvents 0
  17. #define XYZ_NumberErrors 0
  18.  
  19. #define XYZ_NO_ERROR 0
  20. #define XYZ_ERROR 1
  21.  
  22. #define XYZ_DEFAULT_TRACE_LEVEL 255
  23.  
  24. #ifndef _XAMINE_YOUR_ZERVER_SERVER_
  25.  
  26. extern Bool XYZ_QueryExtension(
  27. #if NeedFunctionPrototypes
  28.    Display * /* dpy */
  29. #endif
  30. );
  31. extern Status XYZ_Instrument(
  32. #if NeedFunctionPrototypes
  33.    Display * /* dpy */,
  34.    int /* on or off */
  35. #endif
  36. );
  37. extern Status XYZ_Trace(
  38. #if NeedFunctionPrototypes
  39.    Display * /* dpy */,
  40.    int /* on or off */
  41. #endif
  42. );
  43. extern Status XYZ_SetCurTraceLevel(
  44. #if NeedFunctionPrototypes
  45.    Display * /* dpy */,
  46.    int /* tracelevel */
  47. #endif
  48. );
  49. extern Status XYZ_QueryState(
  50. #if NeedFunctionPrototypes
  51.    Display * /* dpy */,
  52.    int * /* RETVAL instrument */,
  53.    int * /* RETVAL trace */,
  54.    int * /* RETVAL tracelevel */,
  55.    int * /* RETVAL status */
  56. #endif
  57. );
  58. extern Status XYZ_GetTag(
  59. #if NeedFunctionPrototypes
  60.    Display * /* dpy */,
  61.    char * /* tagname */,
  62.    int * /* RETVAL value */,
  63.    int * /* RETVAL tracelevel */
  64. #endif
  65. );
  66. extern Status XYZ_SetValue(
  67. #if NeedFunctionPrototypes
  68.    Display * /* dpy */,
  69.    char * /* tagname */,
  70.    int /* value */
  71. #endif
  72. );
  73. extern Status XYZ_SetTraceLevel(
  74. #if NeedFunctionPrototypes
  75.    Display * /* dpy */,
  76.    char * /* tagname */,
  77.    int /* tracelevel */
  78. #endif
  79. );
  80. typedef struct _XYZ_value {
  81.    char *tagname;
  82.    int value;
  83. } XYZ_value;
  84. extern XYZ_value * XYZ_ListValues(
  85. #if NeedFunctionPrototypes
  86.    Display * /* dpy */,
  87.    int /* npats */,
  88.    char ** /* pats */,
  89.    int * /* patlens */,
  90.    int /* maxtags */,
  91.    int * /* RETVAL total */,
  92.    int * /* RETVAL returned */
  93. #endif
  94. );
  95. extern void XYZ_FreeValueList(
  96. #if NeedFunctionPrototypes
  97.    XYZ_value * /* value list */
  98. #endif
  99. );
  100. extern Status XYZ_ResetValues(
  101. #if NeedFunctionPrototypes
  102.    Display * /* dpy */
  103. #endif
  104. );
  105. extern Status XYZ_ResetTraceLevels(
  106. #if NeedFunctionPrototypes
  107.    Display * /* dpy */
  108. #endif
  109. );
  110.  
  111. #endif /* _XAMINE_YOUR_SERVER_SERVER_ */
  112.  
  113. #endif /* _XYZEXT_H_ */
  114.