server.h revision f53ba2efceac1847585b2052ee98569305e9802d
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_SERVER_H
#define CR_SERVER_H
#include "cr_protocol.h"
#include "cr_glstate.h"
#include "spu_dispatch_table.h"
#include "state/cr_currentpointers.h"
#include "cr_server.h"
#ifdef VBOX_WITH_CRHGSMI
# include <VBox/VBoxVideo.h>
extern uint8_t* g_pvVRamBase;
{
}
DECLINLINE(void) crServerCrHgsmiCmdComplete(struct VBOXVDMACMD_CHROMIUM_CMD *pCmd, int cmdProcessingRc)
{
}
} while (0)
if (CRVBOXHGSMI_CMDDATA_IS_SET(_pData)) { \
} \
} while (0)
#endif
/*
* This is the base number for window and context IDs
*/
#define MAGIC_OFFSET 5000
/* Semaphore wait queue node */
typedef struct _wqnode {
RunQueue *q;
} wqnode;
typedef struct {
typedef struct {
typedef struct {
/* glProgramLocalParameterARB, glProgramParameterNV */
void crServerSetVBoxConfiguration();
void crServerSetVBoxConfigurationHGCM();
void crServerInitDispatch(void);
void crServerWriteback(void);
void crServerSerializeRemoteStreams(void);
int crServerGetCurrentEye(void);
GLint crServerDispatchCreateContextEx(const char *dpyName, GLint visualBits, GLint shareCtx, GLint preloadCtxID, int32_t internalID);
void crServerCreateInfoDeleteCB(void *data);
#endif /* CR_SERVER_H */