1
0
Fork 0
forked from hanez/xtc

Phase 17: add undoable duplication, naming, ordering and timeline commands

This commit is contained in:
Johannes Findeisen 2026-10-27 06:28:25 +01:00
commit 440e98f2b5
10 changed files with 231 additions and 5 deletions

View file

@ -14,6 +14,12 @@ extern "C" {
#define XTC_TICKS_PER_QUARTER 960U
#define XTC_PROJECT_MAX_TICK UINT64_C(38400000)
typedef struct xtc_project xtc_project;
/* Control-thread edits, transactional validation; duplicate retains complete
* source notes/trim/media references, allocates fresh IDs, copies no audio. */
xtc_result xtc_project_duplicate_clip(xtc_project *project, uint64_t clip, uint64_t track, uint64_t start, uint64_t *out);
xtc_result xtc_project_rename_track(xtc_project *project, uint64_t track, const char *name);
xtc_result xtc_project_rename_clip(xtc_project *project, uint64_t clip, const char *name);
xtc_result xtc_project_move_track(xtc_project *project, uint64_t track, size_t index);
typedef struct {
uint64_t id;