Re-enable flash, refactor to use libmegapixels

This commit is contained in:
Kristian Vos
2024-07-24 13:57:54 +02:00
parent 2bbc0f387f
commit b1c46f7800
7 changed files with 43 additions and 106 deletions

View File

@@ -1,13 +1,8 @@
#include "gio/gio.h"
typedef struct _MPFlash MPFlash;
#include <libmegapixels.h>
void mp_flash_gtk_init(GDBusConnection *conn);
void mp_flash_gtk_clean();
MPFlash *mp_led_flash_from_path(const char *path);
MPFlash *mp_create_display_flash();
void mp_flash_free(MPFlash *flash);
void mp_flash_enable(MPFlash *flash);
void mp_flash_disable(MPFlash *flash);
void mp_flash_enable(libmegapixels_camera *camera);
void mp_flash_disable(libmegapixels_camera *camera);