~ubuntu-branches/debian/lenny/italc/lenny

« back to all changes in this revision

Viewing changes to ica/win32/src/VTypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-06-17 13:46:54 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20080617134654-2y5m7ki93r5c1ysf
Tags: upstream-1.0.9~rc3
ImportĀ upstreamĀ versionĀ 1.0.9~rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
 
2
//
 
3
//  This file is part of the VNC system.
 
4
//
 
5
//  The VNC system is free software; you can redistribute it and/or modify
 
6
//  it under the terms of the GNU General Public License as published by
 
7
//  the Free Software Foundation; either version 2 of the License, or
 
8
//  (at your option) any later version.
 
9
//
 
10
//  This program is distributed in the hope that it will be useful,
 
11
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
//  GNU General Public License for more details.
 
14
//
 
15
//  You should have received a copy of the GNU General Public License
 
16
//  along with this program; if not, write to the Free Software
 
17
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
 
18
//  USA.
 
19
//
 
20
// TightVNC distribution homepage on the Web: http://www.tightvnc.com/
 
21
//
 
22
// If the source code for the VNC system is not available from the place 
 
23
// whence you received this file, check http://www.uk.research.att.com/vnc or contact
 
24
// the authors on vnc@uk.research.att.com for information on obtaining it.
 
25
 
 
26
// VTypes.h
 
27
 
 
28
// RFB V3.0
 
29
 
 
30
// Datatypes used by the VGui system
 
31
 
 
32
#if (!defined(_ATT_VTYPES_DEFINED))
 
33
#define _ATT_VTYPES_DEFINED
 
34
 
 
35
////////////////////////////
 
36
// Numeric data types
 
37
 
 
38
////////////////////////////
 
39
// Fixed size (derived from rfb.h)
 
40
 
 
41
typedef unsigned int VCard32;
 
42
typedef unsigned short VCard16;
 
43
typedef unsigned char VCard8;
 
44
typedef int VInt32;
 
45
typedef short VInt16;
 
46
typedef char VInt8;
 
47
 
 
48
////////////////////////////
 
49
// Variable size
 
50
//              These will always be at least as big as the largest
 
51
//              fixed-size data-type
 
52
 
 
53
typedef VCard32 VCard;
 
54
typedef VInt32 VInt;
 
55
 
 
56
////////////////////////////
 
57
// Useful functions on integers
 
58
 
 
59
static inline VInt Max(VInt x, VInt y) {if (x>y) return x; else return y;}
 
60
static inline VInt Min(VInt x, VInt y) {if (x<y) return x; else return y;}
 
61
 
 
62
////////////////////////////
 
63
// Boolean
 
64
 
 
65
typedef int VBool;
 
66
const VBool VTrue = -1;
 
67
const VBool VFalse = 0;
 
68
 
 
69
////////////////////////////
 
70
// Others
 
71
 
 
72
typedef char VChar;
 
73
#if (!defined(NULL))
 
74
#define NULL 0
 
75
#endif
 
76
 
 
77
////////////////////////////
 
78
// Compound data types
 
79
 
 
80
typedef VChar * VString;
 
81
typedef const VChar * VStringConst;
 
82
 
 
83
#endif // _ATT_VTYPES_DEFINED
 
84
 
 
85
 
 
86
 
 
87
 
 
88