1 Star 4 Fork 2

light_years/onvif_http_C

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
onvif_http.h 755 Bytes
一键复制 编辑 原始数据 按行查看 历史
light_years 提交于 2022-03-10 09:10 . onvif_http 提交
#ifndef _ONVIF_HTTP_H
#define _ONVIF_HTTP_H
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "curl/curl.h"
#include "ezxml.h"
#include <unistd.h>
#ifdef __cplusplus
extern "C" {
#endif
void onvif_http_init();
//request url, return resBody
char* url_request(const char* url, const char* body, const char* method);
//read file get reqBody
char* get_reqbody(const char* fileName);
//free pt
void my_free(char* pt);
//for snapshot,get token
char* get_profiletoken();
//get snapshot uri to snapShotUri
char* get_snapshot_uri(char* token);
//get img and write to file
void get_snapshot_img(char* uri);
//free url
void onvif_http_clean();
#ifdef __cplusplus
}
#endif
#endif // _ONVIF_HTTP_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/light__years/onvif_http.git
git@gitee.com:light__years/onvif_http.git
light__years
onvif_http
onvif_http_C
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385