use void (*)() instead of void* for Livido

git-svn-id: svn://code.dyne.org/veejay/trunk@494 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2005-11-21 13:33:05 +00:00
parent 780fdb95a0
commit 1b62ba0924
2 changed files with 14 additions and 13 deletions

View File

@@ -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; }; if (!livido_setup) { printf("FATAL: function livido_setup not found in %s\n", name); return 1; };
livido_setup_t setup[] = { livido_setup_t setup[] = {
{(void*)malloc }, {(void(*)())malloc },
{(void*)free}, {(void(*)())free},
{(void*)memset}, {(void(*)())memset},
{(void*)memcpy}, {(void(*)())memcpy},
{(void*)vevo_port_new}, {(void(*)())vevo_port_new},
{(void*)vevo_port_free}, {(void(*)())vevo_port_free},
{(void*)vevo_property_set}, {(void(*)())vevo_property_set},
{(void*)vevo_property_get}, {(void(*)())vevo_property_get},
{(void*)vevo_property_num_elements}, {(void(*)())vevo_property_num_elements},
{(void*)vevo_property_atom_type}, {(void(*)())vevo_property_atom_type},
{(void*)vevo_property_element_size}, {(void(*)())vevo_property_element_size},
{(void*)vevo_list_properties} {(void(*)())vevo_list_properties}
}; };
#endif #endif

View File

@@ -178,7 +178,8 @@ typedef char **(*livido_list_properties_f) (livido_port_t *);
typedef struct typedef struct
{ {
void *f; void (*f)();
// void *f;
} livido_setup_t; } livido_setup_t;
typedef livido_port_t *(*livido_setup_f) (const livido_setup_t list[], int ); typedef livido_port_t *(*livido_setup_f) (const livido_setup_t list[], int );