Dante Application Library API
DAL.hpp
1 #pragma once
2 
3 #include "audinate/dal/Common.hpp"
4 
5 namespace Audinate { namespace DAL {
6 
11 {
12 public:
13  unsigned int index;
14 #ifdef _WIN32
15  std::wstring name;
16 #else
17  std::string name;
18 #endif
19  bool isLinkUp;
20 };
21 
25 class DAL
26 {
27 protected:
28  DAL() {}
29  virtual ~DAL() {}
30 
31 public:
36  virtual void getAvailableInterfaces(std::vector<AvailableInterface> &interfaces) = 0;
37 
42  virtual Id64 getManufacturerId() const = 0;
43 };
44 
50 std::shared_ptr<DAL> createDAL(const char *accessToken);
51 
56 DALVersion getVersion();
57 
61 void shutdown();
62 
63 };};
Audinate::DAL::AvailableInterface::index
unsigned int index
integer index of the interface
Definition: DAL.hpp:13
Audinate::DAL::AvailableInterface::name
std::wstring name
wstring name of the interface.
Definition: DAL.hpp:15
Audinate::DAL::DAL::getManufacturerId
virtual Id64 getManufacturerId() const =0
Get the manufacturer ID as set by Audinate in your access token.
Audinate::DAL::Id64
Definition: Types.hpp:90
Audinate::DAL::AvailableInterface::isLinkUp
bool isLinkUp
Is the network interface link currently connected.
Definition: DAL.hpp:19
Audinate::DAL::DAL::getAvailableInterfaces
virtual void getAvailableInterfaces(std::vector< AvailableInterface > &interfaces)=0
Get a collection of available, wired network interfaces.
Audinate::DAL::AvailableInterface::name
std::string name
string name of the interface.
Definition: DAL.hpp:17
Audinate::DAL::DAL
The main DAL class and entry point.
Definition: DAL.hpp:25
Audinate::DAL::DALVersion
The DALVersion class used for tracking updates to the DAL library.
Definition: Types.hpp:72
Audinate::DAL::AvailableInterface
An available network interface that is valid for use with DAL.
Definition: DAL.hpp:10