#ifndef PHOTOKIT_BRIDGE_H
#define PHOTOKIT_BRIDGE_H

#ifdef __cplusplus
extern "C" {
#endif

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 index
);

char *photos_export_original_json(
    const char *asset_id,
    const char *output_dir,
    int index
);

char *photos_list_tree_json(void);

int photos_export_album_previews(
    const char *album_id,
    const char *output_dir,
    int target_size
);

int photos_export_album_originals(
    const char *album_id,
    const char *output_dir
);

int photos_backup_all(
    const char *output_dir,
    int target_size,
    int originals
);

void photos_request_cancel(void);

void photos_free_string(char *value);

#ifdef __cplusplus
}
#endif

#endif
