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

  • From: Jeff McClintock <jeffmcc@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Fri, 11 Feb 2005 21:24:39 +1300

>>    GMPI_RESULT   (_stdcall *AddRef)         ( IGMPI_Plugin *);
>>    GMPI_RESULT   (_stdcall *Release)        ( IGMPI_Plugin *);
>
>
> Oh yeah, we can't rename these, can we?

You can can call them anything, provided the signature is identical. They are only function pointers (to the host).

But there is a sub-set of coders who are already familiar with those names who don't need a new learing curve.

Best Regards,
Jeff

Tim Hockin wrote:
On Fri, Feb 11, 2005 at 03:28:11PM +1300, Jeff McClintock wrote:

   GMPI_RESULT   (_stdcall *AddRef)         ( IGMPI_Plugin *);
   GMPI_RESULT   (_stdcall *Release)        ( IGMPI_Plugin *);


Oh yeah, we can't rename these, can we?  I hate the fact that they are
complements, but their names are not.

AddRef, DropRef
Grab, Release
Ref, Unref

Anything that shows that they are a proper pair.  You ought to be able
to guess the name of the one from the other.

Or is that set in the stone of COM?

----------------------------------------------------------------------
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




----------------------------------------------------------------------
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: