Replace debug_print with to_json

to_json and cJSON_Print are now used when displaying debug information.

The main reason for this change it to support sending objects over DAP.
This commit is contained in:
Nunuhara Cabbage
2023-05-14 20:12:34 -07:00
parent 535a1f1804
commit 7392d74efe
20 changed files with 663 additions and 468 deletions
+4 -1
View File
@@ -17,12 +17,15 @@
#ifndef SYSTEM4_PLUGIN_H
#define SYSTEM4_PLUGIN_H
#include <stdbool.h>
typedef struct cJSON cJSON;
struct sact_sprite;
struct draw_plugin {
const char *name;
void (*update)(struct sact_sprite *);
void (*debug_print)(struct sact_sprite *, int indent);
cJSON *(*to_json)(struct sact_sprite *, bool);
};
#endif /* SYSTEM4_PLUGIN_H */