diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-04-25 10:31:42 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-04-25 10:31:42 +0200 |
commit | fff0e0dbf7ca36d5610671d18b66491a62e522ef (patch) | |
tree | 2fc650ecff5cc2c3f0b5bbe3ac57e9cd649b6a43 /include | |
parent | bcb9ff752cdf63831eaff2a959c0516e821c2dd8 (diff) | |
download | synthpod-fff0e0dbf7ca36d5610671d18b66491a62e522ef.tar.xz |
extend *_request callbacks to include maximum.
Diffstat (limited to 'include')
-rw-r--r-- | include/synthpod_app.h | 4 | ||||
-rw-r--r-- | include/synthpod_ui.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/synthpod_app.h b/include/synthpod_app.h index baa5cadc..f34b8849 100644 --- a/include/synthpod_app.h +++ b/include/synthpod_app.h @@ -41,8 +41,8 @@ typedef struct _sp_app_system_source_t sp_app_system_source_t; typedef struct _sp_app_system_sink_t sp_app_system_sink_t; typedef struct _sp_app_driver_t sp_app_driver_t; -typedef void *(*sp_to_request_t)(size_t size, void *data); -typedef void (*sp_to_advance_t)(size_t size, void *data); +typedef void *(*sp_to_request_t)(size_t minimum, size_t *maximum, void *data); +typedef void (*sp_to_advance_t)(size_t written, void *data); typedef void *(*sp_system_port_add)(void *data, system_port_t type, const char *short_name, const char *pretty_name, const char *designation, diff --git a/include/synthpod_ui.h b/include/synthpod_ui.h index 021b77c2..e353ccb5 100644 --- a/include/synthpod_ui.h +++ b/include/synthpod_ui.h @@ -54,8 +54,8 @@ typedef enum _sp_ui_features_t sp_ui_features_t; typedef struct _sp_ui_t sp_ui_t; typedef struct _sp_ui_driver_t sp_ui_driver_t; -typedef void *(*sp_to_request_t)(size_t size, void *data); -typedef void (*sp_to_advance_t)(size_t size, void *data); +typedef void *(*sp_to_request_t)(size_t minimum, size_t *maximum, void *data); +typedef void (*sp_to_advance_t)(size_t written, void *data); typedef void (*sp_close_t)(void *data); |