#ifndef PHOTOKIT_BRIDGE_H #define PHOTOKIT_BRIDGE_H #include #ifdef __cplusplus extern "C" { #endif typedef struct { int active; double progress; int64_t bytes_done; int64_t bytes_total; } export_progress_t; int photos_request_access(void); char *photos_list_albums_json(void); char *photos_list_assets_json(const char *album_id); char *photos_export_preview_json( const char *asset_id, const char *output_dir, int target_size, int quality, int index, int slot_index ); char *photos_export_original_json( const char *asset_id, const char *output_dir, int index, int slot_index ); char *photos_list_tree_json(void); void photos_request_cancel(void); int photos_request_is_cancelled(void); void photos_free_string(char *value); export_progress_t *photos_get_progress_slots(void); export_progress_t photos_get_progress_slot(export_progress_t *slots, int index); int photos_get_progress_slot_count(void); void photos_reset_progress_slots(void); #ifdef __cplusplus } #endif #endif