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 | |
Gong Ke | 3489c0f | 2020-01-16 18:11:44 +0800 | [diff] [blame] | 8 | #include "dvr_types.h" |
| 9 | #include "segment_file.h" |
Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame] | 10 | |
Pengfei Liu | c181a98 | 2020-01-07 19:27:13 +0800 | [diff] [blame] | 11 | int dvr_segment_delete(const char *location, uint64_t segment_id); |
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_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] | 14 | |
Gong Ke | 3489c0f | 2020-01-16 18:11:44 +0800 | [diff] [blame] | 15 | int dvr_segment_get_info(const char *location, uint64_t segment_id, Segment_StoreInfo_t *p_info); |
Pengfei Liu | c181a98 | 2020-01-07 19:27:13 +0800 | [diff] [blame] | 16 | |
| 17 | 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] | 18 | |
| 19 | #ifdef __cplusplus |
| 20 | } |
| 21 | #endif |
| 22 | |
| 23 | #endif /*END _DVR_SEGMENT_H_*/ |