479c284dfc
- Add IsCancelled() to Bridge interface - Check bridge.IsCancelled() before each export in serial/parallel/backupTree - Parallel workers mark remaining slots as 'cancelled' instead of exporting - Add photos_request_is_cancelled to ObjC and C stub
40 lines
639 B
C
40 lines
639 B
C
#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);
|
|
|
|
void photos_request_cancel(void);
|
|
|
|
int photos_request_is_cancelled(void);
|
|
|
|
void photos_free_string(char *value);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|