Messages in this thread | | | Date | Tue, 24 Oct 2000 11:34:47 -0700 (PDT) | From | Linus Torvalds <> |
| |
On Tue, 24 Oct 2000, Abramo Bagnara wrote:
> 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).
You're probably right. It certainly makes it easier to add fields later on if we'd want to extend the ID part without having to change old users..
Linus
- 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/
| |