Anders Knive Lassen a5e224713a contrib: add .net bindings
DotRocket is a C++/CLI assembly that binds the C-api to Managed
objects for .NET.
2011-04-16 13:47:31 +02:00

25 lines
585 B
C++

// DotRocketClient.h
#pragma once
struct sync_device;
struct sync_track;
using namespace System;
using namespace System::Collections::Generic;
namespace DotRocket {
public ref class ClientDevice: public Device {
protected:
sync_device *device;
Dictionary<System::String ^, Track ^> ^tracks;
public:
ClientDevice(System::String ^name);
~ClientDevice() { this->!ClientDevice(); }
!ClientDevice();
virtual Track^ GetTrack(String ^name) override;
virtual bool Connect(System::String ^host, unsigned short port) override;
virtual bool Update(int row) override;
};
}