Linus Torvalds wrote:
> 
> 
>         struct event {
>                 int fd;
>                 unsigned long mask;
>                 void *opaque;
>                 void (*event_fn)(ind fd, unsigned long mask, void *opaque);

My experience say that:

                unsigned long rmask;
                void (*event_fn)(struct event *event);

is a far better solution (more type safe, more descriptive).


-- 
Abramo Bagnara                       mailto:[EMAIL PROTECTED]

Opera Unica
Via Emilia Interna, 140              Phone: +39.0546.656023
48014 Castel Bolognese (RA) - Italy  Fax:   +39.0546.656023

ALSA project is            http://www.alsa-project.org
sponsored by SuSE Linux    http://www.suse.com

It sounds good!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to