Equalizer 1.0

eq/fabric/commands.h

00001 
00002 /* Copyright (c) 2005-2011, 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_COMMANDS_H
00020 #define EQFABRIC_COMMANDS_H
00021 
00022 #include <co/commands.h>
00023 
00024 namespace eq
00025 {
00026 namespace fabric
00027 {
00029     enum ServerCommand
00030     {
00031         CMD_SERVER_CHOOSE_CONFIG        = co::CMD_NODE_CUSTOM,
00032         CMD_SERVER_CHOOSE_CONFIG_REPLY,
00033         CMD_SERVER_CREATE_CONFIG,
00034         CMD_SERVER_CREATE_CONFIG_REPLY,
00035         CMD_SERVER_DESTROY_CONFIG,
00036         CMD_SERVER_DESTROY_CONFIG_REPLY,
00037         CMD_SERVER_RELEASE_CONFIG,
00038         CMD_SERVER_RELEASE_CONFIG_REPLY,
00039         CMD_SERVER_INIT_CONFIG,
00040         CMD_SERVER_SHUTDOWN,
00041         CMD_SERVER_SHUTDOWN_REPLY,
00042         // admin
00043         CMD_SERVER_MAP,
00044         CMD_SERVER_MAP_REPLY,
00045         CMD_SERVER_UNMAP,
00046         CMD_SERVER_UNMAP_REPLY,
00047         CMD_SERVER_FILL1, // some buffer for binary-compatible patches
00048         CMD_SERVER_FILL2,
00049         CMD_SERVER_FILL3,
00050         CMD_SERVER_FILL4,
00051         CMD_SERVER_FILL5,
00052         CMD_SERVER_CUSTOM
00053     };
00054 
00055     enum ClientCommand
00056     {
00057         CMD_CLIENT_EXIT = co::CMD_NODE_CUSTOM,
00058         CMD_CLIENT_FILL1, // some buffer for binary-compatible patches
00059         CMD_CLIENT_FILL2,
00060         CMD_CLIENT_FILL3,
00061         CMD_CLIENT_FILL4,
00062         CMD_CLIENT_FILL5,
00063         CMD_CLIENT_CUSTOM
00064     };
00065 
00066     enum ObjectCommand
00067     {
00068         CMD_OBJECT_SYNC = co::CMD_OBJECT_CUSTOM, // 10
00069         CMD_OBJECT_CUSTOM
00070     };
00071 
00072     enum ConfigCommand
00073     {
00074         CMD_CONFIG_NEW_LAYOUT = CMD_OBJECT_CUSTOM, // 11
00075         CMD_CONFIG_NEW_CANVAS,
00076         CMD_CONFIG_NEW_OBSERVER,
00077         CMD_CONFIG_NEW_ENTITY_REPLY,
00078         CMD_CONFIG_START_INIT,
00079         CMD_CONFIG_START_INIT_REPLY,
00080         CMD_CONFIG_INIT,
00081         CMD_CONFIG_INIT_REPLY,
00082         CMD_CONFIG_EXIT,
00083         CMD_CONFIG_EXIT_REPLY,
00084         CMD_CONFIG_UPDATE,
00085         CMD_CONFIG_UPDATE_VERSION,
00086         CMD_CONFIG_UPDATE_REPLY,
00087         CMD_CONFIG_CREATE_REPLY,
00088         CMD_CONFIG_CREATE_NODE,
00089         CMD_CONFIG_DESTROY_NODE,
00090         CMD_CONFIG_START_FRAME,
00091         CMD_CONFIG_RELEASE_FRAME_LOCAL,
00092         CMD_CONFIG_FRAME_FINISH,
00093         CMD_CONFIG_FINISH_ALL_FRAMES,
00094         CMD_CONFIG_STOP_FRAMES,
00095         CMD_CONFIG_EVENT,
00096         CMD_CONFIG_FREEZE_LOAD_BALANCING,
00097         CMD_CONFIG_SYNC_CLOCK,
00098         CMD_CONFIG_SWAP_OBJECT,
00099         CMD_CONFIG_CUSTOM = 40 // some buffer for binary-compatible patches
00100     };
00101 
00102     enum NodeCommand
00103     {
00104         CMD_NODE_CONFIG_INIT = CMD_OBJECT_CUSTOM, // 11
00105         CMD_NODE_CONFIG_INIT_REPLY,
00106         CMD_NODE_CONFIG_EXIT,
00107         CMD_NODE_CONFIG_EXIT_REPLY,
00108         CMD_NODE_CREATE_PIPE,
00109         CMD_NODE_DESTROY_PIPE,
00110         CMD_NODE_FRAME_START, 
00111         CMD_NODE_FRAME_FINISH,
00112         CMD_NODE_FRAME_FINISH_REPLY,
00113         CMD_NODE_FRAME_DRAW_FINISH,
00114         CMD_NODE_FRAME_TASKS_FINISH,
00115         CMD_NODE_FRAMEDATA_TRANSMIT,       
00116         CMD_NODE_FRAMEDATA_READY,
00117         CMD_NODE_CUSTOM = 30  // some buffer for binary-compatible patches
00118     };
00119 
00120     enum PipeCommand
00121     {
00122         CMD_PIPE_NEW_WINDOW = CMD_OBJECT_CUSTOM, // 11
00123         CMD_PIPE_NEW_WINDOW_REPLY,
00124         CMD_PIPE_CONFIG_INIT,
00125         CMD_PIPE_CONFIG_INIT_REPLY,
00126         CMD_PIPE_CONFIG_EXIT,
00127         CMD_PIPE_CONFIG_EXIT_REPLY, 
00128         CMD_PIPE_CREATE_WINDOW,
00129         CMD_PIPE_DESTROY_WINDOW,
00130         CMD_PIPE_FRAME_START,
00131         CMD_PIPE_FRAME_FINISH,
00132         CMD_PIPE_FRAME_DRAW_FINISH,
00133         CMD_PIPE_FRAME_START_CLOCK,
00134         CMD_PIPE_EXIT_THREAD,
00135         CMD_PIPE_DETACH_VIEW,
00136         CMD_PIPE_CUSTOM = 30 // some buffer for binary-compatible patches
00137     };
00138 
00139     enum WindowCommand
00140     {
00141         CMD_WINDOW_NEW_CHANNEL = CMD_OBJECT_CUSTOM, // 11
00142         CMD_WINDOW_NEW_CHANNEL_REPLY,
00143         CMD_WINDOW_CONFIG_INIT,
00144         CMD_WINDOW_CONFIG_INIT_REPLY,
00145         CMD_WINDOW_CONFIG_EXIT,
00146         CMD_WINDOW_CONFIG_EXIT_REPLY,
00147         CMD_WINDOW_CREATE_CHANNEL,
00148         CMD_WINDOW_DESTROY_CHANNEL,
00149         CMD_WINDOW_FRAME_START,
00150         CMD_WINDOW_FRAME_FINISH,
00151         CMD_WINDOW_FINISH,
00152         CMD_WINDOW_THROTTLE_FRAMERATE,
00153         CMD_WINDOW_BARRIER,
00154         CMD_WINDOW_NV_BARRIER,
00155         CMD_WINDOW_SWAP,
00156         CMD_WINDOW_FRAME_DRAW_FINISH,
00157         CMD_WINDOW_CUSTOM = 30 // some buffer for binary-compatible patches
00158     };
00159 
00160     enum ChannelCommand
00161     {
00162         CMD_CHANNEL_CONFIG_INIT = CMD_OBJECT_CUSTOM, // 11
00163         CMD_CHANNEL_CONFIG_INIT_REPLY,
00164         CMD_CHANNEL_CONFIG_EXIT,
00165         CMD_CHANNEL_CONFIG_EXIT_REPLY,
00166         CMD_CHANNEL_FRAME_START,
00167         CMD_CHANNEL_FRAME_FINISH,
00168         CMD_CHANNEL_FRAME_FINISH_REPLY,
00169         CMD_CHANNEL_FRAME_CLEAR,
00170         CMD_CHANNEL_FRAME_DRAW,
00171         CMD_CHANNEL_FRAME_DRAW_FINISH,
00172         CMD_CHANNEL_FRAME_ASSEMBLE,
00173         CMD_CHANNEL_FRAME_READBACK,
00174         CMD_CHANNEL_FRAME_TRANSMIT,
00175         CMD_CHANNEL_FRAME_TRANSMIT_ASYNC,
00176         CMD_CHANNEL_FRAME_VIEW_START,
00177         CMD_CHANNEL_FRAME_VIEW_FINISH,
00178         CMD_CHANNEL_STOP_FRAME,
00179         CMD_CHANNEL_CUSTOM = 30 // some buffer for binary-compatible patches
00180     };
00181 
00182     enum CanvasCommand
00183     {
00184         CMD_CANVAS_NEW_SEGMENT = CMD_OBJECT_CUSTOM, // 11 
00185         CMD_CANVAS_NEW_SEGMENT_REPLY,
00186         CMD_CANVAS_CUSTOM = 20 // some buffer for binary-compatible patches
00187     };
00188 
00189     enum LayoutCommand
00190     {
00191         CMD_LAYOUT_NEW_VIEW = CMD_OBJECT_CUSTOM, // 11 
00192         CMD_LAYOUT_NEW_VIEW_REPLY,
00193         CMD_LAYOUT_CUSTOM = 20 // some buffer for binary-compatible patches
00194     };
00196 }
00197 }
00198 #endif // EQFABRIC_COMMANDS_H
00199 
Generated on Sun May 8 2011 19:11:05 for Equalizer 1.0 by  doxygen 1.7.3