lkml.org 
[lkml]   [2000]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    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:abramo@alsa-project.org

    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 majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 12:41    [W:4.684 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site