1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "unpacker.h"
|
---|
8 | #include "cr_error.h"
|
---|
9 | #include <stdio.h>
|
---|
10 |
|
---|
11 | CRNetworkPointer *return_ptr = NULL, *writeback_ptr = NULL;
|
---|
12 |
|
---|
13 | void crUnpackSetReturnPointer( CRNetworkPointer *ret )
|
---|
14 | {
|
---|
15 | return_ptr = ret;
|
---|
16 | }
|
---|
17 |
|
---|
18 | void crUnpackSetWritebackPointer( CRNetworkPointer *wri )
|
---|
19 | {
|
---|
20 | writeback_ptr = wri;
|
---|
21 | }
|
---|
22 |
|
---|
23 | void crUnpackExtendWriteback(void)
|
---|
24 | {
|
---|
25 | /* This copies the unpack buffer's CRNetworkPointer to writeback_ptr */
|
---|
26 | SET_WRITEBACK_PTR( 8 );
|
---|
27 | cr_unpackDispatch.Writeback( NULL );
|
---|
28 | }
|
---|
29 |
|
---|
30 | #if 0
|
---|
31 | void crUnpackWriteback(void)
|
---|
32 | {
|
---|
33 | crError( "crUnpackWriteback should never be called" );
|
---|
34 | }
|
---|
35 | #endif
|
---|