/[rdesktop]/sourceforge.net/trunk/rdesktop/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 /sourceforge.net/trunk/rdesktop/types.h

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

revision 568 by astrand, Wed Oct 15 14:01:32 2003 UTC revision 569 by n-ki, Wed Jan 21 14:40:40 2004 UTC
# Line 7  Line 7 
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
9     (at your option) any later version.     (at your option) any later version.
10      
11     This program is distributed in the hope that it will be useful,     This program is distributed in the hope that it will be useful,
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
# Line 140  typedef uint32 HANDLE; Line 140  typedef uint32 HANDLE;
140    
141  typedef struct _DEVICE_FNS  typedef struct _DEVICE_FNS
142  {  {
143          NTSTATUS(*create) (HANDLE * handle);          NTSTATUS (*create)(uint32 device, uint32 desired_access, uint32 share_mode, uint32 create_disposition, uint32 flags_and_attributes, char *filename, HANDLE *handle);
144          NTSTATUS(*close) (HANDLE handle);          NTSTATUS (*close)(HANDLE handle);
145          NTSTATUS(*read) (HANDLE handle, uint8 * data, uint32 length, uint32 * result);          NTSTATUS (*read)(HANDLE handle, uint8 *data, uint32 length, uint32 offset, uint32 *result);
146          NTSTATUS(*write) (HANDLE handle, uint8 * data, uint32 length, uint32 * result);          NTSTATUS (*write)(HANDLE handle, uint8 *data, uint32 length, uint32 offset, uint32 *result);
147          NTSTATUS(*device_control) (HANDLE handle, uint32 request, STREAM in, STREAM out);          NTSTATUS (*device_control)(HANDLE handle, uint32 request, STREAM in, STREAM out);
148  }  }
149  DEVICE_FNS;  DEVICE_FNS;
150    
151    
152    typedef struct rdpdr_device_info
153    {
154            uint32  device_type;
155            HANDLE  handle;
156            char    name[8];
157            char    *local_path;
158            void    *pdevice_data;
159    }
160    RDPDR_DEVICE;
161    
162    typedef struct rdpdr_serial_device_info
163    {
164            int             dtr;
165            uint32          baud_rate,
166                            queue_in_size,
167                            queue_out_size,
168                            wait_mask,
169                            read_interval_timeout,
170                            read_total_timeout_multiplier,
171                            read_total_timeout_constant,
172                            write_total_timeout_multiplier,
173                            write_total_timeout_constant,
174                            posix_wait_mask;
175            uint8           stop_bits,
176                            parity,
177                            word_length;
178            struct termios  *ptermios,
179                            *pold_termios;
180    }
181    SERIAL_DEVICE;
182    
183    typedef struct rdpdr_parallel_device_info
184    {
185            char    *driver,
186                    *printer;
187            uint32  queue_in_size,
188                    queue_out_size,
189                    wait_mask,
190                    read_interval_timeout,
191                    read_total_timeout_multiplier,
192                    read_total_timeout_constant,
193                    write_total_timeout_multiplier,
194                    write_total_timeout_constant,
195                    posix_wait_mask,
196                    bloblen;
197            uint8   *blob;
198    }
199    PARALLEL_DEVICE;
200    
201    typedef struct rdpdr_printer_info
202    {
203            FILE    *printer_fp;
204            char    *driver,
205                    *printer;
206            uint32  bloblen;
207            uint8   *blob;
208            BOOL    default_printer;
209    }
210    PRINTER;
211    
212    

Legend:
Removed from v.568  
changed lines
  Added in v.569

  ViewVC Help
Powered by ViewVC 1.1.26