summaryrefslogtreecommitdiffstats
path: root/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_writeback.c
blob: f55a4c37ae97493d22c53db6b3a3bf22dac7d3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* Copyright (c) 2001, Stanford University
 * All rights reserved
 *
 * See the file LICENSE.txt for information on redistributing this software.
 */

#include "unpacker.h"
#include "cr_error.h"
#include <stdio.h>

CRNetworkPointer *return_ptr = NULL, *writeback_ptr = NULL;

void crUnpackSetReturnPointer( CRNetworkPointer *ret )
{
	return_ptr = ret;
}

void crUnpackSetWritebackPointer( CRNetworkPointer *wri )
{
	writeback_ptr = wri;
}

void crUnpackExtendWriteback(void)
{
	/* This copies the unpack buffer's CRNetworkPointer to writeback_ptr */
	SET_WRITEBACK_PTR( 8 );
	cr_unpackDispatch.Writeback( NULL );
}

#if 0
void crUnpackWriteback(void)
{
	crError( "crUnpackWriteback should never be called" );
}
#endif