Files
photocli/bridge/photokit_bridge.h
T
Ein Anderssono 479c284dfc v0.2.4: stop export loop on Ctrl+C instead of flooding failures
- 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
2026-06-11 21:44:55 +02:00

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