[linux-dvb] What do you think of mpsys library ? (for ca_zap)
lists at kenneth.aafloy.net
Wed Apr 6 02:49:40 CEST 2005
On Sunday 03 April 2005 09:15, you wrote:
> Johannes Stezenbach wrote:
> > Typedefs have a purpose: Creating an abstraction, i.e. hiding
> > information about the type from the user. IMHO it is totally useless to
> > stick a typedef on every struct or enum definition. All you get is
> > obfuscation. And the _t suffixes are ugly, too.
> > Please ask yourself if and why you want to hide from the users
> > of your API why e.g. vid_dev_hierarchy_t is an enum.
> Yes, typedef's really make opaque data types, The programmer feels
> really comfortable, but a newbie would find it quite a bit hard, ie, a
> larger learning curve for the new types. ie, a longer period somebody
> has to work on that to get moving.
I'm currently playing with implementing an interface based on the ideas in
this discussion, can't promise when I'll have something even close to what
is desired, so don't hold your breath.
More information about the linux-dvb