#include #include #ifndef __NET_CAMERA__ #define __NET_CAMERA__ struct NET_PHOTO_INFO { char ip[24]; char userName[8]; char password[16]; char interface[16]; char url[128]; char outputPath[128]; unsigned char authType; // 0, 1 unsigned char reserved[7]; // for memory alignment }; /* struct NET_PHOTO_INFO { std::string ip; std::string userName; std::string password; std::string interface; std::string url; std::string outputPath; unsigned char authType; // 0, 1 unsigned char reserved[7]; // for memory alignment }; */ namespace nc_hy { bool requestCapture(uint8_t channel, uint8_t preset, const NET_PHOTO_INFO& photoInfo); bool requestCapture(uint8_t channel, uint8_t preset, const NET_PHOTO_INFO& photoInfo, std::vector& img); } namespace nc_hk { bool requestCapture(uint8_t channel); } #endif // __NET_CAMERA__