diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-03-23 14:14:52 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-06-26 09:26:04 +0200 |
commit | 7e618ab440602c8ca16050927b99c4170df59c66 (patch) | |
tree | cd34abe92fc381fc4f65cb7b4a050062709d4ee9 | |
parent | 8b27b2740ee966691668c1b9c4a0e8865be867ba (diff) |
Change ufo_buffer_set_host_array signature
Using float pointer causes crashes further down the line when using Python
interfaces.
-rw-r--r-- | ufo/ufo-buffer.c | 4 | ||||
-rw-r--r-- | ufo/ufo-buffer.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ufo/ufo-buffer.c b/ufo/ufo-buffer.c index 95e5481..106edff 100644 --- a/ufo/ufo-buffer.c +++ b/ufo/ufo-buffer.c @@ -725,7 +725,7 @@ update_location (UfoBufferPrivate *priv, /** * ufo_buffer_set_host_array: * @buffer: A #UfoBuffer - * @array: A pointer to a float array with suitable size. + * @array: (type gulong): A pointer to a float array with suitable size. * @free_data: %TRUE if @buffer is supposed to clean up the host array. * * Use this function to set a host array with a user-provided memory buffer. @@ -733,7 +733,7 @@ update_location (UfoBufferPrivate *priv, * consumer. Note, that the buffer *must* have an appropriate size. */ void -ufo_buffer_set_host_array (UfoBuffer *buffer, gfloat *array, gboolean free_data) +ufo_buffer_set_host_array (UfoBuffer *buffer, gpointer array, gboolean free_data) { UfoBufferPrivate *priv; diff --git a/ufo/ufo-buffer.h b/ufo/ufo-buffer.h index d298c7f..635eb7c 100644 --- a/ufo/ufo-buffer.h +++ b/ufo/ufo-buffer.h @@ -127,7 +127,7 @@ void ufo_buffer_copy (UfoBuffer *src, UfoBuffer *dst); UfoBuffer *ufo_buffer_dup (UfoBuffer *buffer); void ufo_buffer_set_host_array (UfoBuffer *buffer, - gfloat *array, + gpointer array, gboolean free_data); gfloat* ufo_buffer_get_host_array (UfoBuffer *buffer, gpointer cmd_queue); |