[gmpi] Re: low level API - Abstract Factory summary

  • From: Jeff McClintock <jeffmcc@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Tue, 08 Feb 2005 12:55:45 +1300

Cheers Angus,

Looking good.  One query...

> As a general point of coding conventions, I'd prefer to see all
> functions having a result-code return type equivalent to unsigned long
> , unless a particular function needs to
> return a value in an absolutely speed-critical way.

So a function that 'gets' something would need to look like..

GMPI_RESULT GetFlags(int *flags){ *flags = 123456;};

..and be called like...

int flags;
GetFlags ( &flags );

i.e. it can't just return something, you've got to pass in a pointer-to-something.

That will work, but is a little awkward.  What do people think?

Best Regards,

---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: