Equalizer  1.4.1
canvasPackets.h
00001 
00002 /* Copyright (c) 2005-2012, Stefan Eilemann <eile@equalizergraphics.com>
00003  *                    2010, Cedric Stalder  <cedric.stalder@gmail.com>
00004  *
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License version 2.1 as published
00007  * by the Free Software Foundation.
00008  *  
00009  * This library is distributed in the hope that it will be useful, but WITHOUT
00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00012  * details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation, Inc.,
00016  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef EQFABRIC_CANVASPACKETS_H
00020 #define EQFABRIC_CANVASPACKETS_H
00021 
00022 #include <eq/fabric/packets.h> // base structs
00023 
00025 namespace eq
00026 {
00027 namespace fabric
00028 {
00029     struct CanvasNewSegmentPacket : public CanvasPacket
00030     {
00031         CanvasNewSegmentPacket( const uint32_t requestID_ )
00032                 : requestID( requestID_ )
00033                 , pad( 0 )
00034             {
00035                 command = CMD_CANVAS_NEW_SEGMENT;
00036                 size    = sizeof( CanvasNewSegmentPacket );
00037             }
00038 
00039         const uint32_t requestID;
00040         const uint32_t pad;
00041     };
00042 
00043     struct CanvasNewSegmentReplyPacket : public CanvasPacket
00044     {
00045         CanvasNewSegmentReplyPacket( const CanvasNewSegmentPacket* request )
00046                 : requestID( request->requestID )
00047                 , pad( 0 )
00048             {
00049                 command = CMD_CANVAS_NEW_SEGMENT_REPLY;
00050                 size    = sizeof( CanvasNewSegmentReplyPacket );
00051             }
00052 
00053         UUID segmentID;
00054         const uint32_t requestID;
00055         const uint32_t pad;
00056     };
00057 }
00058 }
00060 #endif //EQFABRIC_CANVASPACKETS_H
Generated on Mon Nov 26 2012 14:41:48 for Equalizer 1.4.1 by  doxygen 1.7.6.1