Add panicf to plugin and codec API

Change-Id: I0e11ecaf8e18233f682f572f479cfdd141c99bd5
This commit is contained in:
Aidan MacDonald 2026-04-21 14:32:48 +01:00 committed by Solomon Peachy
parent 4e62c9f8cb
commit 9ac6edf750
4 changed files with 6 additions and 0 deletions

View file

@ -50,6 +50,7 @@
#include "splash.h"
#include "general.h"
#include "rbpaths.h"
#include "panic.h"
#define LOGF_ENABLE
#include "logf.h"
@ -150,6 +151,7 @@ struct codec_api ci = {
/* new stuff at the end, sort into place next time
the API gets incompatible */
panicf,
};

View file

@ -49,6 +49,7 @@
#include "core_keymap.h"
#include "language.h"
#include "statusbar-skinned.h"
#include "panic.h"
#if CONFIG_CHARGING
#include "power.h"
@ -870,6 +871,7 @@ static const struct plugin_api rockbox_api = {
/* new stuff at the end, sort into place next time
the API gets incompatible */
panicf,
};
static int plugin_buffer_handle;

View file

@ -1024,6 +1024,7 @@ struct plugin_api {
/* new stuff at the end, sort into place next time
the API gets incompatible */
void (*panicf)(const char *msg, ...);
};
/* plugin header */

View file

@ -224,6 +224,7 @@ struct codec_api {
/* new stuff at the end, sort into place next time
the API gets incompatible */
void (*panicf)(const char *msg, ...);
};
/* codec header */