Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame] | 1 | #ifndef _DVR_SEGMENT_H_ |
| 2 | #define _DVR_SEGMENT_H_ |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | #include "dvr_common.h" |
| 9 | |
Pengfei Liu | c181a98 | 2020-01-07 19:27:13 +0800 | [diff] [blame] | 10 | typedef struct DVR_SegmentInfo_s { |
| 11 | } DVR_SegmentInfo; |
Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame] | 12 | |
Pengfei Liu | c181a98 | 2020-01-07 19:27:13 +0800 | [diff] [blame] | 13 | int dvr_segment_delete(const char *location, uint64_t segment_id); |
Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame] | 14 | |
Pengfei Liu | c181a98 | 2020-01-07 19:27:13 +0800 | [diff] [blame] | 15 | int dvr_segment_get_list(const char *location, uint32_t *p_segment_nb, uint64_t **pp_segment_ids); |
Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame] | 16 | |
Pengfei Liu | c181a98 | 2020-01-07 19:27:13 +0800 | [diff] [blame] | 17 | int dvr_segment_get_info(const char *location, uint64_t segment_id, DVR_SegmentInfo *p_info); |
| 18 | |
| 19 | int dvr_segment_link(const char *location, uint32_t nb_segments, uint64_t *p_segment_ids); |
Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame] | 20 | |
| 21 | #ifdef __cplusplus |
| 22 | } |
| 23 | #endif |
| 24 | |
| 25 | #endif /*END _DVR_SEGMENT_H_*/ |