mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 22:00:00 +01:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user