1 /**************************************************************************/
2 /*                                                                        */
3 /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/.         */
4 /*                                                                        */
5 /* NXCOMP, NX protocol compression and NX extensions to this software     */
6 /* are copyright of NoMachine. Redistribution and use of the present      */
7 /* software is allowed according to terms specified in the file LICENSE   */
8 /* which comes in the source distribution.                                */
9 /*                                                                        */
10 /* Check http://www.nomachine.com/licensing.html for applicability.       */
11 /*                                                                        */
12 /* NX and NoMachine are trademarks of Medialogic S.p.A.                   */
13 /*                                                                        */
14 /* All rights reserved.                                                   */
15 /*                                                                        */
16 /**************************************************************************/
17 
18 #ifndef RenderCreatePictureCompat_H
19 #define RenderCreatePictureCompat_H
20 
21 //
22 // Define the characteristics
23 // of this message class here.
24 //
25 
26 #undef  MESSAGE_NAME
27 #define MESSAGE_NAME          "RenderCreatePictureCompat"
28 
29 #undef  MESSAGE_STORE
30 #define MESSAGE_STORE         RenderCreatePictureCompatStore
31 
32 #undef  MESSAGE_CLASS
33 #define MESSAGE_CLASS         RenderMinorExtensionStore
34 
35 #undef  MESSAGE_METHODS
36 #define MESSAGE_METHODS       "RenderMinorExtensionMethods.h"
37 
38 #undef  MESSAGE_HEADERS
39 #define MESSAGE_HEADERS       "RenderMinorExtensionHeaders.h"
40 
41 #undef  MESSAGE_TAGS
42 #define MESSAGE_TAGS          "RenderMinorExtensionTags.h"
43 
44 #undef  MESSAGE_OFFSET
45 #define MESSAGE_OFFSET        20
46 
47 #undef  MESSAGE_HAS_SIZE
48 #define MESSAGE_HAS_SIZE      1
49 
50 #undef  MESSAGE_HAS_DATA
51 #define MESSAGE_HAS_DATA      1
52 
53 #undef  MESSAGE_HAS_FILTER
54 #define MESSAGE_HAS_FILTER    0
55 
56 //
57 // Declare the message class.
58 //
59 
60 #include MESSAGE_HEADERS
61 
62 class MESSAGE_STORE : public MESSAGE_CLASS
63 {
64   public:
65 
name()66   virtual const char *name() const
67   {
68     return MESSAGE_NAME;
69   }
70 
identitySize(const unsigned char * buffer,unsigned int size)71   virtual int identitySize(const unsigned char *buffer,
72                                unsigned int size)
73   {
74     return MESSAGE_OFFSET;
75   }
76 
77   #include MESSAGE_METHODS
78 };
79 
80 #endif /* RenderCreatePictureCompat_H */
81