summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Stream.cpp
blob: b1da24f1f2da5192055b8f2b72e149962cacb22d (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
// **********************************************************************
//
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#include <Ice/Stream.h>

using namespace std;
using namespace Ice;
using namespace IceInternal;

void IceInternal::incRef(InputStream* p) { p->__incRef(); }
void IceInternal::decRef(InputStream* p) { p->__decRef(); }
void IceInternal::incRef(OutputStream* p) { p->__incRef(); }
void IceInternal::decRef(OutputStream* p) { p->__decRef(); }

Ice::ReadObjectCallbackI::ReadObjectCallbackI(PatchFunc func, void* arg) :
    _func(func), _arg(arg)
{
}

void
Ice::ReadObjectCallbackI::invoke(const ::Ice::ObjectPtr& p)
{
    _func(_arg, const_cast< ::Ice::ObjectPtr& >(p));
}