Login
1 branch 0 tags
Ben (Desktop/Arch) Audiobooks 73b6798 1 month ago 27 Commits
moon / firmware / src / bookmark.h
#pragma once
#include <stdbool.h>
#include <stdint.h>

// Load bookmark position for a file path
// Returns position in milliseconds, or 0 if no bookmark exists
uint32_t bookmark_load(const char *path);

// Save bookmark position for a file path
// Writes to .onigiri/state.toml on the SD card
bool bookmark_save(const char *path, uint32_t position_ms);

// Remove bookmark for a file path (e.g., when playback completes)
bool bookmark_remove(const char *path);