LibUSB

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

LibUSB

Louis LaBrunda
Hi Smalltalkers,

I'm toying with the idea of creating VA Smalltalk objects to interface to LibUSB.  This requires building a bunch of C structures (sub classes of OSStructure).  I'm not a C guy and don't want to be but I am generally able to muddle through when I have to.  I'm hoping that when I run into trouble matching a C data type to a Smalltalk class I can ask for some help here.

Before I jump into this, is there any Smalltalk code around (or at Instantiations) that can read C .h files (or whatever) and output Smalltalk?

Lou

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Bulk] LibUSB

Instantiations mailing list
Hi Lou,

Marten and I did this for the OpenGL binding once, you may have a look into the OpenGL binding available on vastgoodies.com.

In the MSKOpenGLInterfaceApp class on the class side there is a category "source code generation" which includes methods to parse gl.h and generate function call methods and needed PRAGMAS.

The configuration maps on vastgoodies are old and out of sync but with some tweaking you can load them.
I can also email you a fileout of that class if you want.

Hope that helps
Sebastian


On 2015-12-07 8:56 AM, Louis LaBrunda wrote:
Hi Smalltalkers,

I'm toying with the idea of creating VA Smalltalk objects to interface to LibUSB.  This requires building a bunch of C structures (sub classes of OSStructure).  I'm not a C guy and don't want to be but I am generally able to muddle through when I have to.  I'm hoping that when I run into trouble matching a C data type to a Smalltalk class I can ask for some help here.

Before I jump into this, is there any Smalltalk code around (or at Instantiations) that can read C .h files (or whatever) and output Smalltalk?

Lou
--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Bulk] LibUSB

Louis LaBrunda
Hi Sebastian,

Thanks for the reply, I will take a look.  I'm sure it will be helpful.

Lou

On Monday, December 7, 2015 at 12:43:42 PM UTC-5, Sebastian Heidbrink wrote:
Hi Lou,

Marten and I did this for the OpenGL binding once, you may have a look into the OpenGL binding available on <a href="http://vastgoodies.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fvastgoodies.com\46sa\75D\46sntz\0751\46usg\75AFQjCNHxjcEL5lPg-RJkLXxK7FrDTlALcw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fvastgoodies.com\46sa\75D\46sntz\0751\46usg\75AFQjCNHxjcEL5lPg-RJkLXxK7FrDTlALcw&#39;;return true;">vastgoodies.com.

In the MSKOpenGLInterfaceApp class on the class side there is a category "source code generation" which includes methods to parse gl.h and generate function call methods and needed PRAGMAS.

The configuration maps on vastgoodies are old and out of sync but with some tweaking you can load them.
I can also email you a fileout of that class if you want.

Hope that helps
Sebastian


On 2015-12-07 8:56 AM, Louis LaBrunda wrote:
Hi Smalltalkers,

I'm toying with the idea of creating VA Smalltalk objects to interface to <a href="http://www.libusb.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.libusb.org\46sa\75D\46sntz\0751\46usg\75AFQjCNExPOPCD_jmTdZOzKUkazGMoVllFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.libusb.org\46sa\75D\46sntz\0751\46usg\75AFQjCNExPOPCD_jmTdZOzKUkazGMoVllFg&#39;;return true;">LibUSB.  This requires building a bunch of C structures (sub classes of OSStructure).  I'm not a C guy and don't want to be but I am generally able to muddle through when I have to.  I'm hoping that when I run into trouble matching a C data type to a Smalltalk class I can ask for some help here.

Before I jump into this, is there any Smalltalk code around (or at Instantiations) that can read C .h files (or whatever) and output Smalltalk?

Lou
--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="hrW9pTTYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">va-smalltalk...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="hrW9pTTYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">va-sma...@....
Visit this group at <a href="http://groups.google.com/group/va-smalltalk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/group/va-smalltalk&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/group/va-smalltalk&#39;;return true;">http://groups.google.com/group/va-smalltalk.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.