| 1 | /* |
| 2 | * File: md.h |
| 3 | * |
| 4 | * Copyright (C) 1999 Steve Ratcliffe |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | /* Defines for md_walk() */ |
| 20 | #define MD_WALK_ALLcxx . . $ `src/md.h:20:9`! 1 /* Include all elements including deleted, hidden*/ |
| 21 | |
| 22 | /* Defines for walk callback flags */ |
| 23 | #define MD_WALK_STARTcxx . . $ `src/md.h:23:9`! 0x001 /* This is a start element */ |
| 24 | #define MD_WALK_ENDcxx . . $ `src/md.h:24:9`! 0x002 /* This is the end of an element */ |
| 25 | #define MD_WALK_EMPTYcxx . . $ `src/md.h:25:9`! (MD_WALK_START|MD_WALK_END) /* Empty element */ |
| 26 | |
| 27 | /* Typedef for md_walk callback function */ |
| 28 | typedef void (*walkFunccxx . . $ walkFunc#)(struct elementcxx . . $ element# *, void *, int); |
| 29 | |
| 30 | |
| 31 | /* |
| 32 | * Structure to keep track of the position on each track that |
| 33 | * is being merged. |
| 34 | */ |
| 35 | struct sequenceStatecxx . . $ sequenceState# { |
| 36 | int nmergecxx . . $ sequenceState#nmerge.; /* Number of tracks in trackPos to merge */ |
| 37 | struct trackPoscxx . . $ trackPos# *track_ptrscxx . . $ sequenceState#track_ptrs.; /* Position pointers */ |
| 38 | struct rootElementcxx . . $ rootElement# *rootcxx . . $ sequenceState#root.; /* Root to be returned first */ |
| 39 | unsigned long endtimecxx . . $ sequenceState#endtime.; /* End time */ |
| 40 | }; |
| 41 | struct trackPoscxx . . $ trackPos# { |
| 42 | int lencxx . . $ trackPos#len.; /* Total length of this container element */ |
| 43 | int countcxx . . $ trackPos#count.; /* Current position count */ |
| 44 | struct elementcxx . . $ element# **currelcxx . . $ trackPos#currel.; /* Pointer to current position */ |
| 45 | }; |
| 46 | |
| 47 | void md_walkcxx . . $ md_walk(d954273704fe16c1).(struct containerElementcxx . . $ containerElement# *c, walkFunccxx . . $ walkFunc# fn, void *arg, int flags); |
| 48 | int iscontainercxx . . $ iscontainer(86b198a3a266d083).(struct elementcxx . . $ element# *el); |
| 49 | struct sequenceStatecxx . . $ sequenceState# *md_sequence_initcxx . . $ md_sequence_init(7a1012fd3b1c8308).(struct rootElementcxx . . $ rootElement# *root); |
| 50 | struct elementcxx . . $ element# *md_sequence_nextcxx . . $ md_sequence_next(6d4a417716755e0b).(struct sequenceStatecxx . . $ sequenceState# *seq); |
| 51 | void md_sequence_endcxx . . $ md_sequence_end(ba6c69886285fd56).(struct sequenceStatecxx . . $ sequenceState# *seq); |
| 52 | unsigned long md_sequence_end_timecxx . . $ md_sequence_end_time(c476a0bb7caa0ca8).(struct sequenceStatecxx . . $ sequenceState# *seq); |