/[rdesktop]/jpeg/rdesktop/trunk/types.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jpeg/rdesktop/trunk/types.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1311 by stargo, Wed Nov 1 21:23:08 2006 UTC revision 1485 by astrand, Tue Nov 25 08:05:25 2008 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Common data types     Common data types
4     Copyright (C) Matthew Chapman 1999-2005     Copyright (C) Matthew Chapman 1999-2008
5      
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or     the Free Software Foundation; either version 2 of the License, or
# Line 12  Line 12 
12     but WITHOUT ANY WARRANTY; without even the implied warranty of     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.     GNU General Public License for more details.
15      
16     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software     along with this program; if not, write to the Free Software
18     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */  */
20    
21  #ifdef WITH_SCARD  typedef int RD_BOOL;
 #ifdef PCSC_OSX  
 #include <PCSC/wintypes.h>  
 #else  
 #include <wintypes.h>  
 #endif /* PCSC_OSX */  
 #else  
 typedef int BOOL;  
 #endif  
22    
23  #ifndef True  #ifndef True
24  #define True  (1)  #define True  (1)
# Line 40  typedef signed short sint16; Line 32  typedef signed short sint16;
32  typedef unsigned int uint32;  typedef unsigned int uint32;
33  typedef signed int sint32;  typedef signed int sint32;
34    
35  typedef void *HBITMAP;  typedef void *RD_HBITMAP;
36  typedef void *HGLYPH;  typedef void *RD_HGLYPH;
37  typedef void *HCOLOURMAP;  typedef void *RD_HCOLOURMAP;
38  typedef void *HCURSOR;  typedef void *RD_HCURSOR;
39    
40  typedef struct _POINT  typedef struct _RD_POINT
41  {  {
42          sint16 x, y;          sint16 x, y;
43  }  }
44  POINT;  RD_POINT;
45    
46  typedef struct _COLOURENTRY  typedef struct _COLOURENTRY
47  {  {
# Line 87  typedef struct _PEN Line 79  typedef struct _PEN
79  }  }
80  PEN;  PEN;
81    
82    /* this is whats in the brush cache */
83    typedef struct _BRUSHDATA
84    {
85            uint32 colour_code;
86            uint32 data_size;
87            uint8 *data;
88    }
89    BRUSHDATA;
90    
91  typedef struct _BRUSH  typedef struct _BRUSH
92  {  {
93          uint8 xorigin;          uint8 xorigin;
94          uint8 yorigin;          uint8 yorigin;
95          uint8 style;          uint8 style;
96          uint8 pattern[8];          uint8 pattern[8];
97            BRUSHDATA *bd;
98  }  }
99  BRUSH;  BRUSH;
100    
# Line 103  typedef struct _FONTGLYPH Line 104  typedef struct _FONTGLYPH
104          sint16 baseline;          sint16 baseline;
105          uint16 width;          uint16 width;
106          uint16 height;          uint16 height;
107          HBITMAP pixmap;          RD_HBITMAP pixmap;
108    
109  }  }
110  FONTGLYPH;  FONTGLYPH;
# Line 153  CELLHEADER; Line 154  CELLHEADER;
154  #define MAX_CBSIZE 256  #define MAX_CBSIZE 256
155    
156  /* RDPSND */  /* RDPSND */
157  typedef struct  typedef struct _RD_WAVEFORMATEX
158  {  {
159          uint16 wFormatTag;          uint16 wFormatTag;
160          uint16 nChannels;          uint16 nChannels;
# Line 163  typedef struct Line 164  typedef struct
164          uint16 wBitsPerSample;          uint16 wBitsPerSample;
165          uint16 cbSize;          uint16 cbSize;
166          uint8 cb[MAX_CBSIZE];          uint8 cb[MAX_CBSIZE];
167  } WAVEFORMATEX;  } RD_WAVEFORMATEX;
168    
169  typedef struct _RDPCOMP  typedef struct _RDPCOMP
170  {  {
# Line 174  typedef struct _RDPCOMP Line 175  typedef struct _RDPCOMP
175  RDPCOMP;  RDPCOMP;
176    
177  /* RDPDR */  /* RDPDR */
178  typedef uint32 NTSTATUS;  typedef uint32 RD_NTSTATUS;
179  typedef uint32 NTHANDLE;  typedef uint32 RD_NTHANDLE;
180    
181  typedef struct _DEVICE_FNS  typedef struct _DEVICE_FNS
182  {  {
183          NTSTATUS(*create) (uint32 device, uint32 desired_access, uint32 share_mode,          RD_NTSTATUS(*create) (uint32 device, uint32 desired_access, uint32 share_mode,
184                             uint32 create_disposition, uint32 flags_and_attributes, char *filename,                                uint32 create_disposition, uint32 flags_and_attributes,
185                             NTHANDLE * handle);                                char *filename, RD_NTHANDLE * handle);
186          NTSTATUS(*close) (NTHANDLE handle);          RD_NTSTATUS(*close) (RD_NTHANDLE handle);
187          NTSTATUS(*read) (NTHANDLE handle, uint8 * data, uint32 length, uint32 offset,          RD_NTSTATUS(*read) (RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset,
188                           uint32 * result);                              uint32 * result);
189          NTSTATUS(*write) (NTHANDLE handle, uint8 * data, uint32 length, uint32 offset,          RD_NTSTATUS(*write) (RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset,
190                            uint32 * result);                               uint32 * result);
191          NTSTATUS(*device_control) (NTHANDLE handle, uint32 request, STREAM in, STREAM out);          RD_NTSTATUS(*device_control) (RD_NTHANDLE handle, uint32 request, STREAM in, STREAM out);
192  }  }
193  DEVICE_FNS;  DEVICE_FNS;
194    
# Line 195  DEVICE_FNS; Line 196  DEVICE_FNS;
196  typedef struct rdpdr_device_info  typedef struct rdpdr_device_info
197  {  {
198          uint32 device_type;          uint32 device_type;
199          NTHANDLE handle;          RD_NTHANDLE handle;
200          char name[8];          char name[8];
201          char *local_path;          char *local_path;
202          void *pdevice_data;          void *pdevice_data;
# Line 243  typedef struct rdpdr_printer_info Line 244  typedef struct rdpdr_printer_info
244          char *driver, *printer;          char *driver, *printer;
245          uint32 bloblen;          uint32 bloblen;
246          uint8 *blob;          uint8 *blob;
247          BOOL default_printer;          RD_BOOL default_printer;
248  }  }
249  PRINTER;  PRINTER;
250    
# Line 267  typedef struct fileinfo Line 268  typedef struct fileinfo
268          DIR *pdir;          DIR *pdir;
269          struct dirent *pdirent;          struct dirent *pdirent;
270          char pattern[PATH_MAX];          char pattern[PATH_MAX];
271          BOOL delete_on_close;          RD_BOOL delete_on_close;
272          NOTIFY notify;          NOTIFY notify;
273          uint32 info_class;          uint32 info_class;
274  }  }
275  FILEINFO;  FILEINFO;
276    
277  typedef BOOL(*str_handle_lines_t) (const char *line, void *data);  typedef RD_BOOL(*str_handle_lines_t) (const char *line, void *data);

Legend:
Removed from v.1311  
changed lines
  Added in v.1485

  ViewVC Help
Powered by ViewVC 1.1.26