package main
/*
#cgo CFLAGS: -I./include -x c++
#cgo LDFLAGS: -L./lib -lCameraSDK
#include
#include
#include
#include
*/
import "C"
func main() {
}
device_discovery.h
#pragma once
#include
#include
namespace ins_camera {
/**
* \class DeviceDiscovery
* \brief a convenient class for discovery Insta360 camera devices.
*/
class CAMERASDK_API DeviceDiscovery {
public:
/**
* \brief get a list of available devices. This method may establish a connection with
* detected cameras to get some basic information such as serial_number.
* \return a list of DeviceDescriptor describing detected cameras.
* Remember to call FreeDeviceDescriptors(std::vector descs)
* on the returned list to avoid memory leak.
*/
std::vector GetAvailableDevices();
/**
* \brief free memory allocated for DeviceDescriptor
*/
void FreeDeviceDescriptors(std::vector descs);
private:
std::vector GetAvailableUSBDevices();
std::vector GetAvailableWifiDevices();
};
}