remove old callbacks.h usages

This commit is contained in:
Paolo Marrone 2024-08-29 16:57:41 +02:00
parent b0c213ac27
commit b1bb7bfab6
9 changed files with 14 additions and 41 deletions

View File

@ -28,5 +28,4 @@ module.exports = function (data, api) {
api.generateFileFromTemplateFile(`src${sep}MainActivity.java`, `src${sep}MainActivity.java`, data); api.generateFileFromTemplateFile(`src${sep}MainActivity.java`, `src${sep}MainActivity.java`, data);
api.generateFileFromTemplateFile(`src${sep}index.html`, `src${sep}index.html`, data); api.generateFileFromTemplateFile(`src${sep}index.html`, `src${sep}index.html`, data);
api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`); api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };

View File

@ -24,5 +24,4 @@ var sep = path.sep;
module.exports = function (data, api) { module.exports = function (data, api) {
api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);
api.copyFile(`src${sep}main.c`, `src${sep}main.c`); api.copyFile(`src${sep}main.c`, `src${sep}main.c`);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };

View File

@ -1,24 +0,0 @@
#ifndef TIBIA_CALLBACKS_H
#define TIBIA_CALLBACKS_H
#include <stddef.h>
typedef struct {
void *handle;
const char *format;
const char *(*get_bindir)(void *handle);
const char *(*get_datadir)(void *handle);
} plugin_callbacks;
typedef struct {
void *handle;
const char *format;
const char *(*get_bindir) (void *handle);
const char *(*get_datadir) (void *handle);
void (*set_parameter_begin)(void *handle, size_t index);
void (*set_parameter) (void *handle, size_t index, float value);
void (*set_parameter_end) (void *handle, size_t index);
} plugin_ui_callbacks;
#endif

View File

@ -21,21 +21,25 @@
#ifndef PLUGIN_API_H #ifndef PLUGIN_API_H
#define PLUGIN_API_H #define PLUGIN_API_H
#include <stddef.h>
typedef struct { typedef struct {
void * handle; void *handle;
const char * format; const char *format;
const char * (*get_bindir)(void *handle);
const char * (*get_bindir) (void *handle);
const char * (*get_datadir)(void *handle); const char * (*get_datadir)(void *handle);
} plugin_callbacks; } plugin_callbacks;
typedef struct { typedef struct {
void * handle; void *handle;
const char * format; const char *format;
const char * (*get_bindir)(void *handle);
const char * (*get_datadir)(void *handle); const char * (*get_bindir) (void *handle);
void (*set_parameter_begin)(void *handle, size_t index); const char * (*get_datadir) (void *handle);
void (*set_parameter)(void *handle, size_t index, float value); void (*set_parameter_begin)(void *handle, size_t index);
void (*set_parameter_end)(void *handle, size_t index); void (*set_parameter) (void *handle, size_t index, float value);
void (*set_parameter_end) (void *handle, size_t index);
} plugin_ui_callbacks; } plugin_ui_callbacks;
{{?it.product.parameters.length > 0}} {{?it.product.parameters.length > 0}}

View File

@ -24,5 +24,4 @@ var sep = path.sep;
module.exports = function (data, api) { module.exports = function (data, api) {
api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);
api.copyFile(`src${sep}main.cpp`, `src${sep}main.cpp`); api.copyFile(`src${sep}main.cpp`, `src${sep}main.cpp`);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };

View File

@ -28,5 +28,4 @@ module.exports = function (data, api) {
api.copyFile(`src${sep}app-Bridging-Header.h`, `src${sep}app-Bridging-Header.h`); api.copyFile(`src${sep}app-Bridging-Header.h`, `src${sep}app-Bridging-Header.h`);
api.copyFile(`src${sep}app.swift`, `src${sep}app.swift`, data); api.copyFile(`src${sep}app.swift`, `src${sep}app.swift`, data);
api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`); api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };

View File

@ -123,5 +123,4 @@ module.exports = function (data, api, outputCommon, outputData) {
api.copyFile(`src${sep}lv2.c`, `src${sep}lv2.c`); api.copyFile(`src${sep}lv2.c`, `src${sep}lv2.c`);
api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);
api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`); api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };

View File

@ -68,5 +68,4 @@ module.exports = function (data, api, outputCommon, outputData) {
api.copyFile(`src${sep}vst3.c`, `src${sep}vst3.c`); api.copyFile(`src${sep}vst3.c`, `src${sep}vst3.c`);
api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);
api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`); api.copyFile(`..${sep}common${sep}fatica.h`, `src${sep}fatica.h`);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };

View File

@ -31,5 +31,4 @@ module.exports = function (data, api) {
api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);
api.generateFileFromTemplateFile(`src${sep}processor.js`, `src${sep}processor.js`, data); api.generateFileFromTemplateFile(`src${sep}processor.js`, `src${sep}processor.js`, data);
api.generateFileFromTemplateFile(`src${sep}module.js`, `src${sep}module.js`, data); api.generateFileFromTemplateFile(`src${sep}module.js`, `src${sep}module.js`, data);
api.copyFile(`..${sep}common${sep}callbacks.h`, `src${sep}callbacks.h`);
}; };