realbasic-plugins
[Top] [All Lists]

Proper declares request

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Proper declares request
From: Tim Jones <tjmac at tolisgroup dot com>
Date: Mon, 22 Oct 2007 15:32:10 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Organization: TOLIS Group, Inc.
Hi Folks,

Working on a plugin being developed from a current Linux shared library 
that requires 2 structs of shorts passed in and a third struct of shorts 
for the results to be returned.  I understand the process of passing in 
the structs as MemoryBlocks as Ptr, and passing the third struct as a 
memoryblock byref as a Ptr.

My question is what type of object am I creating when I add my RB 
function?  Here's the actual function call definition:

  static void MontgomeryReduction(unsigned short *m1,
                                  unsigned short *m2,
                                  unsigned short *result)

What type of the entry in the pluginMethodArray[]?  For example:

  static REALmethodDefinition pluginMethodArray[] = {
      { (REALproc) ModularExp, REALnoImplementation,
                  "ModularExp(MemoryBlock As Ptr,
                              MemoryBlock As Ptr,
                              ByRef MemoryBlock As Ptr)" },
  };

I'm obviously missing something.

Thanks,
Tim


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>