Cisco Headend System Release 2.7

Page of 26
 
78-4029824-01 Rev B 
 
Program Definition 
 
Program Definition 
program is defined with the following data structure: 
Data 
Structure 
struct dvrSchedule_t { 
 
int 
 
dcn; 
 
// Channel number 
 
time_t  
start;   
// UNIX epoch 
 
time_t  
duration;  
// duration in seconds 
 
int 
 
saveDays; 
 
int 
 
saveEpisodes; 
 
int 
 
allEpisodeDefinition; 
 
struct { 
 
 
ui16 
repeat  
: 1;  // repeat flag 
 
 
ui16 
isManual 
: 1; 
 
 
// manual recording flag 
 
 
ui16 
isPlayback 
: 1;   
 
 
// presently in playback (only set on query) 
 
 
ui16 
isRecording 
: 1;   
 
 
// presently recording (only set on query) 
 
 
ui16 
reserved 
: 12; 
 
} flags; 
} ;
 
Parameters  dcn 
Channel number (range from 0-1999) 
 
saveDays 
The number of days that an episode will be saved.  
Presently, SARA supports the following values: 
 
0 = Keep Until User Erases 
 
1 = Keep 1 Day 
 
2 = Keep 2 Days 
 
7 = Keep 7 Days 
 
14 = Keep 14 Days 
 
Any other value is an error at this time 
 
saveEpisodes 
The number of episodes in an all episode request to 
save.  Presently, the following values are supported: 
 
0 = Keep all episodes 
 
1-5 = Keep the specified number of episodes 
 
Any other value is an error at this time