Xeviestr.h
上传用户:lctgjx
上传日期:2022-06-04
资源大小:8887k
文件大小:11k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /* $XdotOrg: $ */
  2. /************************************************************          
  3.                                                                        
  4. Copyright 2003 Sun Microsystems, Inc.                                  
  5.                                                                        
  6. All rights reserved.                                                   
  7.                                                                        
  8. Permission is hereby granted, free of charge, to any person obtaining a
  9. copy of this software and associated documentation files (the          
  10. "Software"), to deal in the Software without restriction, including    
  11. without limitation the rights to use, copy, modify, merge, publish,    
  12. distribute, and/or sell copies of the Software, and to permit persons  
  13. to whom the Software is furnished to do so, provided that the above    
  14. copyright notice(s) and this permission notice appear in all copies of 
  15. the Software and that both the above copyright notice(s) and this      
  16. permission notice appear in supporting documentation.                  
  17.                                                                        
  18. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF             
  20. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT  
  21. OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR       
  22. HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
  23. INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 
  24. FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,   
  25. NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION   
  26. WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.                          
  27.                                                                        
  28. Except as contained in this notice, the name of a copyright holder     
  29. shall not be used in advertising or otherwise to promote the sale, use 
  30. or other dealings in this Software without prior written authorization 
  31. of the copyright holder.                                               
  32.                                                                        
  33. ************************************************************/          
  34.                                                                        
  35. #ifndef _XEVIESTR_H_                                                   
  36. #define _XEVIESTR_H_                                                   
  37. #define XEVIENAME "XEVIE"                                              
  38.                                                                        
  39. #define XEVIE_MAJOR_VERSION 1                                          
  40. #define XEVIE_MINOR_VERSION 0                                          
  41. #define X_XevieQueryVersion 0
  42. #define X_XevieStart 1
  43. #define X_XevieEnd 2
  44. #define X_XevieSend 3
  45. #define X_XevieSelectInput 4
  46. #define XevieNumberErrors 0
  47. typedef struct _XevieQueryVersion {                                    
  48.     CARD8   reqType;                                                   
  49.     CARD8   xevieReqType;                                              
  50.     CARD16  length B16;                                                
  51.     CARD16  client_major_version B16;                                  
  52.     CARD16  client_minor_version B16;                                  
  53. } xXevieQueryVersionReq;                                               
  54. #define sz_xXevieQueryVersionReq            8                          
  55.                                                                        
  56. typedef struct {                                                       
  57.     BYTE    type;                                                      
  58.     BOOL    pad1;                                                      
  59.     CARD16  sequence_number B16;                                       
  60.     CARD32  length B32;                                                
  61.     CARD16  server_major_version B16;                                  
  62.     CARD16  server_minor_version B16;                                  
  63.     CARD32  pad2 B32;                                                  
  64.     CARD32  pad3 B32;                                                  
  65.     CARD32  pad4 B32;                                                  
  66.     CARD32  pad5 B32;                                                  
  67.     CARD32  pad6 B32;                                                  
  68. } xXevieQueryVersionReply;                                             
  69. #define sz_xXevieQueryVersionReply  32                                 
  70.                                                                        
  71. typedef struct _XevieStart {                                           
  72.     CARD8   reqType;                                                   
  73.     CARD8   xevieReqType;                                              
  74.     CARD16  length B16;                                                
  75.     CARD32  screen B32;                                                
  76. } xXevieStartReq;                                                      
  77. #define sz_xXevieStartReq 8                                            
  78.                                                                        
  79. typedef struct {                                                       
  80.     BYTE    type;                                                      
  81.     BOOL    pad1;                                                      
  82.     CARD16  sequence_number B16;                                       
  83.     CARD32  length B32;                                                
  84.     CARD32  pad2 B32;                                                  
  85.     CARD32  pad3 B32;                                                  
  86.     CARD32  pad4 B32;                                                  
  87.     CARD32  pad5 B32;                                                  
  88.     CARD32  pad6 B32;                                                  
  89.     CARD32  pad7 B32;                                                  
  90. } xXevieStartReply;                                                    
  91. #define sz_xXevieStartReply         32                                 
  92.                                                                        
  93. typedef struct _XevieEnd {                                             
  94.     CARD8   reqType;                                                   
  95.     CARD8   xevieReqType;                                              
  96.     CARD16  length B16;                                                
  97.     CARD32  cmap B32;                                                  
  98. } xXevieEndReq;                                                        
  99. #define sz_xXevieEndReq             8                                  
  100.                                                                        
  101. typedef struct {                                                       
  102.     BYTE    type;           /* X_Reply */                              
  103.     BOOL    pad1;                                                      
  104.     CARD16  sequence_number B16;                                       
  105.     CARD32  length B32;                                                
  106.     CARD32  pad2 B32;                                                  
  107.     CARD32  pad3 B32;                                                  
  108.     CARD32  pad4 B32;                                                  
  109.     CARD32  pad5 B32;                                                  
  110.     CARD32  pad6 B32;                                                  
  111.     CARD32  pad7 B32;                                                  
  112. } xXevieEndReply;                                                      
  113. #define sz_xXevieEndReply   32                                         
  114.                                                                        
  115. typedef struct _XevieSend {                                            
  116.     CARD8       reqType;                                               
  117.     CARD8       xevieReqType;                                          
  118.     CARD16      length B16;                                            
  119.     xEvent      event;                                                 
  120.     CARD32      dataType B32;                                          
  121. } xXevieSendReq;                                                       
  122. #define sz_xXevieSendReq           104                                 
  123.                                                                        
  124. typedef struct {                                                       
  125.     BYTE        type;                                                  
  126.     BOOL        pad1;                                                  
  127.     CARD16      sequence_number B16;                                   
  128.     CARD32      length B32;                                            
  129.     CARD32      pad2 B32;                                              
  130.     CARD32      pad3 B32;                                              
  131.     CARD32      pad4 B32;                                              
  132.     CARD32      pad5 B32;                                              
  133.     CARD32      pad6 B32;                                              
  134.     CARD32      pad7 B32;                                              
  135. } xXevieSendReply;                                                     
  136. #define sz_xXevieSendReply        32                                   
  137.                                                                        
  138. typedef struct _XevieSelectInput {                                     
  139.     CARD8  reqType;                                                    
  140.     CARD8  xevieReqType;                                               
  141.     CARD16      length B16;                                            
  142.     CARD32 event_mask B32;                                             
  143. } xXevieSelectInputReq;                                                
  144. #define sz_xXevieSelectInputReq          8                             
  145.                                                                        
  146. typedef struct {                                                       
  147.     BYTE   type;                                                       
  148.     BOOL   pad1;                                                       
  149.     CARD16 sequence_number B16;                                        
  150.     CARD32 length B32;                                                 
  151.     CARD32 pad2 B32;                                                   
  152.     CARD32 pad3 B32;                                                   
  153.     CARD32 pad4 B32;                                                   
  154.     CARD32 pad5 B32;                                                   
  155.     CARD32 pad6 B32;                                                   
  156.     CARD32 pad7 B32;                                                   
  157. } xXevieSelectInputReply;                                              
  158. #define sz_xXevieSelectInputReply        32                            
  159.                                                                        
  160. #endif /* } _XEVIESTR_H_ */                                            
  161.