feat: navigate arrangement markers and loop named sections

This commit is contained in:
Johannes Findeisen 2026-11-06 00:31:08 +01:00
commit bd39eb1345
8 changed files with 71 additions and 5 deletions

View file

@ -22,6 +22,11 @@ typedef struct {uint64_t tick;char name[XTC_PROJECT_NAME_BYTES];} xtc_marker;
xtc_result xtc_project_marker_count(const xtc_project *project,size_t *out);
xtc_result xtc_project_get_marker(const xtc_project *project,size_t index,xtc_marker *out);
xtc_result xtc_project_set_marker(xtc_project *project,uint64_t tick,const char *name);
/* Strict previous/next, direction -1/+1, no wrap. Section is the last marker
* at/before tick to the next marker, or the final clip end for the last marker.
* Query outputs remain unchanged on error. Empty final sections reject. */
xtc_result xtc_project_adjacent_marker(const xtc_project *project,uint64_t tick,int direction,xtc_marker *out);
xtc_result xtc_project_section(const xtc_project *project,uint64_t tick,uint64_t *begin,uint64_t *end);
xtc_result xtc_project_remove_marker(xtc_project *project,uint64_t tick);
/* Control-thread edits, transactional validation; duplicate retains complete