Show io and core plugin version in the json listing ##core

This commit is contained in:
pancake 2024-05-29 11:14:21 +02:00 committed by pancake
parent a1d2851354
commit d7f4f82f42
2 changed files with 7 additions and 1 deletions

View File

@ -626,6 +626,9 @@ static int cmd_plugins(void *data, const char *input) {
pj_o (pj);
pj_ks (pj, "name", cp->meta.name);
pj_ks (pj, "desc", cp->meta.desc);
if (cp->meta.version) {
pj_ks (pj, "version", cp->meta.version);
}
pj_ks (pj, "license", cp->meta.license? cp->meta.license: "???");
if (cp->meta.author) {
pj_ks (pj, "author", cp->meta.author);

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2008-2022 - pancake */
/* radare - LGPL - Copyright 2008-2024 - pancake */
#include <r_io.h>
#include "config.h"
@ -123,6 +123,9 @@ R_API int r_io_plugin_list_json(RIO *io) {
if (plugin->meta.license) {
pj_ks (pj, "license", plugin->meta.license);
}
if (plugin->meta.version) {
pj_ks (pj, "version", plugin->meta.version);
}
if (plugin->uris) {
char *uri;
char *uris = strdup (plugin->uris);