Login
1 branch 0 tags
Ben (Desktop/Arch) Code cleanup, extracted playlist code from now_playing_screen e62119b 29 days ago 79 Commits
moon / src / podcast_sync.h
#pragma once
#include <stdbool.h>

typedef struct {
	int total_feeds;
	int current_feed;
	int total_episodes;
	int current_episode;
	int errors;
	const char* current_action;
	char last_error[128];
	bool done;
	bool cancelled;
} podcast_sync_status_t;

// Start a sync of all feeds from podcasts.xml
void podcast_sync_start(void);

// Start a sync of a single feed by URL and title
void podcast_sync_start_single(const char* title, const char* url);

// Execute one step of the sync process
// Returns true if there is more work to do, false when done
bool podcast_sync_step(void);

// Get current sync status (read-only)
const podcast_sync_status_t* podcast_sync_get_status(void);

// Cancel the current sync operation
void podcast_sync_cancel(void);