Expose slideshow struct

This commit is contained in:
Willy-JL
2023-03-28 06:56:43 +01:00
parent af65a0dc7d
commit 70fbbde236
2 changed files with 6 additions and 8 deletions

View File

@@ -3,18 +3,11 @@
#include <stddef.h>
#include <storage/storage.h>
#include <gui/icon.h>
#include <gui/icon_i.h>
#include <core/dangerous_defines.h>
#define SLIDESHOW_MAGIC 0x72676468
#define SLIDESHOW_MAX_SUPPORTED_VERSION 1
struct Slideshow {
Icon icon;
uint32_t current_frame;
bool loaded;
};
#pragma pack(push, 1)
typedef struct {

View File

@@ -1,8 +1,13 @@
#pragma once
#include <gui/canvas.h>
#include <gui/icon_i.h>
typedef struct Slideshow Slideshow;
typedef struct {
Icon icon;
uint32_t current_frame;
bool loaded;
} Slideshow;
Slideshow* slideshow_alloc();