added apgetconnected to git

This commit is contained in:
Carl Klemm 2020-02-13 19:25:28 +01:00
parent b0b4a985e9
commit a761eb4317
2 changed files with 191 additions and 0 deletions

19
src/apgetconnected.h Normal file
View file

@ -0,0 +1,19 @@
#pragma once
#include<vector>
#include<string>
#include<stdint.h>
namespace ap
{
enum ERRORS
{
SUCESS,
ERR_INIT,
ERR_NO_DEV,
ERR_ALLOC,
ERR_GENERAL
};
std::vector<uint64_t> connectedDevices(const std::string& ifDevice, int& error);
std::string macAddrToString(uint64_t macAddr);
}