Bonjour,
un extrait du code :
- dans un .h :
typedef struct EVENT_STRUCT_TAG {
vrt_event_handler_t handler; //!< Function pointer to event handler.
void *attribute; //!< Pointer to the storage where the event's attributes can be found. NULL if none available.
} vrt_event_t;
- et dans un .c :
/* Extract next event and call the event handler if it is known to the system. */
vrt_event_t *this_event = &vrt_event_fifo[vrt_event_fifo_tail];
//....//
(this_event->handler)(this_event->attribute);
c'est sur la dernière expression "(this_event->handler)(this_event->attribute); " que je bloque
je suis pas habitué à cette écriture.
si qq pouvait m'éclairer ;)
hdan