From 1b62ba0924fe695b7464a9caf01169526b12b51c Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Mon, 21 Nov 2005 13:33:05 +0000 Subject: [PATCH] use void (*)() instead of void* for Livido git-svn-id: svn://code.dyne.org/veejay/trunk@494 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- vevo-mpool/examples/testhost.c | 24 ++++++++++++------------ vevo-mpool/include/livido.h | 3 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/vevo-mpool/examples/testhost.c b/vevo-mpool/examples/testhost.c index bd60a672..fa574dc4 100644 --- a/vevo-mpool/examples/testhost.c +++ b/vevo-mpool/examples/testhost.c @@ -425,18 +425,18 @@ int main(int argc, char **argv) if (!livido_setup) { printf("FATAL: function livido_setup not found in %s\n", name); return 1; }; livido_setup_t setup[] = { - {(void*)malloc }, - {(void*)free}, - {(void*)memset}, - {(void*)memcpy}, - {(void*)vevo_port_new}, - {(void*)vevo_port_free}, - {(void*)vevo_property_set}, - {(void*)vevo_property_get}, - {(void*)vevo_property_num_elements}, - {(void*)vevo_property_atom_type}, - {(void*)vevo_property_element_size}, - {(void*)vevo_list_properties} + {(void(*)())malloc }, + {(void(*)())free}, + {(void(*)())memset}, + {(void(*)())memcpy}, + {(void(*)())vevo_port_new}, + {(void(*)())vevo_port_free}, + {(void(*)())vevo_property_set}, + {(void(*)())vevo_property_get}, + {(void(*)())vevo_property_num_elements}, + {(void(*)())vevo_property_atom_type}, + {(void(*)())vevo_property_element_size}, + {(void(*)())vevo_list_properties} }; #endif diff --git a/vevo-mpool/include/livido.h b/vevo-mpool/include/livido.h index 7b87aab9..49604ae7 100644 --- a/vevo-mpool/include/livido.h +++ b/vevo-mpool/include/livido.h @@ -178,7 +178,8 @@ typedef char **(*livido_list_properties_f) (livido_port_t *); typedef struct { - void *f; + void (*f)(); +// void *f; } livido_setup_t; typedef livido_port_t *(*livido_setup_f) (const livido_setup_t list[], int );