comparison playtree.h @ 8174:014e0ea85bdb

Add random stepping support
author albeu
date Tue, 12 Nov 2002 23:39:35 +0000
parents 487cfc28525d
children 5c15777f1c07
comparison
equal deleted inserted replaced
8173:56e664c3bc24 8174:014e0ea85bdb
13 #define PLAY_TREE_ENTRY_NODE -1 13 #define PLAY_TREE_ENTRY_NODE -1
14 #define PLAY_TREE_ENTRY_DVD 0 14 #define PLAY_TREE_ENTRY_DVD 0
15 #define PLAY_TREE_ENTRY_VCD 1 15 #define PLAY_TREE_ENTRY_VCD 1
16 #define PLAY_TREE_ENTRY_TV 2 16 #define PLAY_TREE_ENTRY_TV 2
17 #define PLAY_TREE_ENTRY_FILE 3 17 #define PLAY_TREE_ENTRY_FILE 3
18
19 // Playtree flags
20 #define PLAY_TREE_RND (1<<0)
21 // Playtree flags used by the iter
22 #define PLAY_TREE_RND_PLAYED (1<<8)
23
24 // Iter mode
25 #define PLAY_TREE_ITER_NORMAL 0
26 #define PLAY_TREE_ITER_RND 1
18 27
19 typedef struct play_tree play_tree_t; 28 typedef struct play_tree play_tree_t;
20 typedef struct play_tree_iter play_tree_iter_t; 29 typedef struct play_tree_iter play_tree_iter_t;
21 typedef struct play_tree_param play_tree_param_t; 30 typedef struct play_tree_param play_tree_param_t;
22 31
48 //play_tree_info_t info; 57 //play_tree_info_t info;
49 play_tree_param_t* params; 58 play_tree_param_t* params;
50 int loop; 59 int loop;
51 char** files; 60 char** files;
52 int entry_type; 61 int entry_type;
62 int flags;
53 }; 63 };
54 64
55 struct play_tree_iter { 65 struct play_tree_iter {
56 play_tree_t* root; // Iter root tree 66 play_tree_t* root; // Iter root tree
57 play_tree_t* tree; // Current tree 67 play_tree_t* tree; // Current tree
58 struct m_config* config; 68 struct m_config* config;
59 int loop; // Looping status 69 int loop; // Looping status
60 int file; 70 int file;
61 int num_files; 71 int num_files;
62 int entry_pushed; 72 int entry_pushed;
73 int mode;
63 74
64 int* status_stack; // loop/valid stack to save/revert status when we go up/down 75 int* status_stack; // loop/valid stack to save/revert status when we go up/down
65 int stack_size; // status stack size 76 int stack_size; // status stack size
66 }; 77 };
67 78