[linux-dvb] What do you think of mpsys library ? (for ca_zap)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Ack!

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.

Kenneth



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux