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

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

revision 10 by matty, Tue Aug 15 10:23:24 2000 UTC revision 64 by astrand, Thu Jul 18 16:38:31 2002 UTC
# Line 23  typedef struct stream Line 23  typedef struct stream
23  {  {
24          unsigned char *p;          unsigned char *p;
25          unsigned char *end;          unsigned char *end;
26          unsigned char *data;          unsigned char *data;
27          unsigned int size;          unsigned int size;
28    
29          /* Offsets of various headers */          /* Offsets of various headers */
# Line 32  typedef struct stream Line 32  typedef struct stream
32          unsigned char *sec_hdr;          unsigned char *sec_hdr;
33          unsigned char *rdp_hdr;          unsigned char *rdp_hdr;
34    
35  } *STREAM;  }
36     *STREAM;
37    
38  #define s_push_layer(s,h,n)     { (s)->h = (s)->p; (s)->p += n; }  #define s_push_layer(s,h,n)     { (s)->h = (s)->p; (s)->p += n; }
39  #define s_pop_layer(s,h)        (s)->p = (s)->h;  #define s_pop_layer(s,h)        (s)->p = (s)->h;
# Line 65  typedef struct stream Line 66  typedef struct stream
66  #define in_uint16(s,v)          in_uint16_be(s,v)  #define in_uint16(s,v)          in_uint16_be(s,v)
67  #define in_uint32(s,v)          in_uint32_be(s,v)  #define in_uint32(s,v)          in_uint32_be(s,v)
68  #define out_uint16(s,v)         out_uint16_be(s,v)  #define out_uint16(s,v)         out_uint16_be(s,v)
69  #define out_uint32(s,v)         out_uint32_be(s,b)  #define out_uint32(s,v)         out_uint32_be(s,v)
70    
71  #else  #else
72  #define next_be(s,v)            v = ((v) << 8) + *((s)->p++);  #define next_be(s,v)            v = ((v) << 8) + *((s)->p++);

Legend:
Removed from v.10  
changed lines
  Added in v.64

  ViewVC Help
Powered by ViewVC 1.1.26