Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Next release

Date2007-05-02 16:53
FromMichael Gogins
SubjectRe: [Cs-dev] Next release
Please note, the callback setter declaration in csound.h needs to be #ifndef SWIG (#ifdef'd out if SWIG is running) as SWIG does not know how to make a stub for the function that sets the callback because, in turn, it does not know how to define the callback itself in the target language. 

I have put in this #ifdef in my local code, and it will be checked in soon probably if you do not also do it.

If we need to have the callback setter (and therefore also the callback) exposed in the Python API, etc., there are several alternative ways to do this: a typemap, a helper class, or a virtual function with a director. We should discuss which is best.

Regards,
Mike

-----Original Message-----
>From: Anthony Kozar 
>Sent: May 2, 2007 11:25 AM
>To: Csound Developer list 
>Subject: Re: [Cs-dev] Next release
>
>I still have some more code to tweak for the new FileOpen callback that I
>added last weekend.
>
>Victor's schedule sounds pretty good to me.
>
>Anthony
>
>Victor Lazzarini wrote on 5/2/07 6:30 AM:
>
>>> b) Do you have stuff you want in the next release?
>> 
>> yes, I think so.
>> 
>>> c) When is convenient to schedule it?
>> 
>> Mid/end of May?
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-05-03 01:47
FromAnthony Kozar
SubjectRe: [Cs-dev] SWIG and callbacks
I do not see any other callback setters in the API being treated in this way
in the current version of csound.h.

I have no idea whether the FileOpen callback should be exposed via the SWIG
interfaces or not; nor would I know how to do so.  I suppose it could be a
useful function if someone wanted to (say) use Scons as a make tool for
Csound projects.  (One of my intended purposes for the FileOpen callback is
"automatic" detection of dependencies between files in a Csound project).

Anthony 

Michael Gogins wrote on 5/2/07 11:53 AM:

> Please note, the callback setter declaration in csound.h needs to be #ifndef
> SWIG (#ifdef'd out if SWIG is running) as SWIG does not know how to make a
> stub for the function that sets the callback because, in turn, it does not
> know how to define the callback itself in the target language.
> 
> I have put in this #ifdef in my local code, and it will be checked in soon
> probably if you do not also do it.
> 
> If we need to have the callback setter (and therefore also the callback)
> exposed in the Python API, etc., there are several alternative ways to do
> this: a typemap, a helper class, or a virtual function with a director. We
> should discuss which is best.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net