From e25f3e440ed00d597a9802df68adedadb629d814 Mon Sep 17 00:00:00 2001 From: cheliequan <liequanche@126.com> Date: 星期五, 13 一月 2023 12:10:06 +0800 Subject: [PATCH] 1.增加获取系统授权接口 2.完善相机相关函数实现 3.优化内存释放 --- camera.cpp | 61 ++++++++++++++++++++++++++++-- 1 files changed, 57 insertions(+), 4 deletions(-) diff --git a/camera.cpp b/camera.cpp index 127ed6e..771ebbb 100644 --- a/camera.cpp +++ b/camera.cpp @@ -1,19 +1,72 @@ +/****************************************************************************** + + 鐗堟潈鎵�鏈� (C), 2001-2011, 鍖椾含璐濇�濈鎶�鏈湁闄愬叕鍙� + + ****************************************************************************** + 鏂� 浠� 鍚� : camera.cpp + 鐗� 鏈� 鍙� : 鍒濈 + 浣� 鑰� : cheliequan + 鐢熸垚鏃ユ湡 : 2023骞�1鏈�13鏃� + 鏈�杩戜慨鏀� : + 鍔熻兘鎻忚堪 : 鑾峰彇鐩告満鐩稿叧淇℃伅 + 鍑芥暟鍒楄〃 : + dbapi_get_cameras_by_runtype + dbapi_get_gb28181_cameras_by_runtype + 淇敼鍘嗗彶 : + 1.鏃� 鏈� : 2023骞�1鏈�13鏃� + 浣� 鑰� : cheliequan + 淇敼鍐呭 : 鍒涘缓鏂囦欢 + +******************************************************************************/ + +/*----------------------------------------------* + * 鍖呭惈澶存枃浠� * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 澶栭儴鍙橀噺璇存槑 * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 澶栭儴鍑芥暟鍘熷瀷璇存槑 * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 鍐呴儴鍑芥暟鍘熷瀷璇存槑 * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 鍏ㄥ眬鍙橀噺 * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 妯″潡绾у彉閲� * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 甯搁噺瀹氫箟 * + *----------------------------------------------*/ + +/*----------------------------------------------* + * 瀹忓畾涔� * + *----------------------------------------------*/ + #include "dbapi.h" #include "util.h" - using namespace protomsg; - // 鍔爂et鍙傛暟 runType 1: 瀹炴椂 0 杞 bool dbapi_get_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> & list) { const char *topic = DATA_URL_PREFIX("/camera/getCamerasByRunType"); - return true; + bool ret = bus_dbapi_get_list(handle, topic, list); + return ret; } // 鍔爂et鍙傛暟 runType 1: 瀹炴椂 0 杞 bool dbapi_get_gb28181_cameras_by_runtype(void *handle, std::vector<protomsg::Camera> & list) { const char *topic = DATA_URL_PREFIX("/gb28181/camera/getCamerasByRunType"); - return true; + bool ret = bus_dbapi_get_list(handle, topic, list); + return ret; } -- Gitblit v1.8.0