diff options
author | Mark Spruiell <mes@zeroc.com> | 2015-11-06 11:24:22 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2015-11-06 11:24:22 -0800 |
commit | 61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839 (patch) | |
tree | 286025a254ce57d02068551f11cf69b89fa66a72 /cpp/src/IceBT/Instance.cpp | |
parent | A few changes to support move of Freeze (diff) | |
download | ice-61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839.tar.bz2 ice-61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839.tar.xz ice-61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839.zip |
initial commit of C++ Bluetooth transport
Diffstat (limited to 'cpp/src/IceBT/Instance.cpp')
-rw-r--r-- | cpp/src/IceBT/Instance.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cpp/src/IceBT/Instance.cpp b/cpp/src/IceBT/Instance.cpp new file mode 100644 index 00000000000..5381ad5ce94 --- /dev/null +++ b/cpp/src/IceBT/Instance.cpp @@ -0,0 +1,33 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2015 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 <IceBT/Instance.h> +#include <IceBT/Engine.h> + +using namespace std; +using namespace Ice; +using namespace IceBT; + +IceUtil::Shared* IceBT::upCast(IceBT::Instance* p) { return p; } + +IceBT::Instance::Instance(const EnginePtr& engine, Short type, const string& protocol) : + ProtocolInstance(engine->communicator(), type, protocol, true), + _engine(engine) +{ +} + +IceBT::Instance::~Instance() +{ +} + +bool +IceBT::Instance::initialized() const +{ + return _engine->initialized(); +} |