libdvr: recording the channel for 14H,play PVR video,start playing after 15S. [1/1]

PD#SWPL-66574

Problem:
Get segment info spent much time.Record
creat more than 1000 segments,we need get segment info from
more than 1000 segments dat file.

Solution:
1 Add store all segment info file and add load all segment info api.

Verify:
t5

Signed-off-by: hualing chen <hualing.chen@amlogic.com>
Change-Id: I71a74c3cdee1fe6b106fa1a0151782da0bc9c03c
diff --git a/include/segment.h b/include/segment.h
index 00725ce..888c97f 100644
--- a/include/segment.h
+++ b/include/segment.h
@@ -126,6 +126,14 @@
  */
 int segment_store_info(Segment_Handle_t handle, Segment_StoreInfo_t *p_info);
 
+/**\brief Store the segment all information to a file
+ * \param[in] handle, The segment handle
+ * \param[in] p_info, The segment information pointer
+ * \return DVR_SUCCESS On success
+ * \return Error code On failure
+ */
+int segment_store_allInfo(Segment_Handle_t handle, Segment_StoreInfo_t *p_info);
+
 /**\brief Load the segment information from a file
  * \param[in] handle, The segment handle
  * \param[out] p_info, The segment information pointer
@@ -134,6 +142,15 @@
  */
 int segment_load_info(Segment_Handle_t handle, Segment_StoreInfo_t *p_info);
 
+/**\brief Load the segment information from a file
+ * \param[in] handle, The segment handle
+ * \param[out] p_info, The segment information pointer
+ * \return DVR_SUCCESS On success
+ * \return Error code On failure
+ */
+int segment_load_allInfo(Segment_Handle_t handle, struct list_head *list);
+
+
 /**\brief Delete the segment information file
  * \param[in] location, The record file's location
  * \param[in] segment_id, The segment's index