From: Sébastien <seb.morand@gmail.com>
Subject: Re: Interfacing with Objective-C or Python
Date: Mon, 26 May 2008 09:02:22 +0000
Date: 2008-05-26T09:02:22+00:00 [thread overview]
Message-ID: <483A7C9E.7010603@gmail.com> (raw)
In-Reply-To: 70ae8db4-60f1-4069-8ebc-94d5afe38eaa@x1g2000prh.googlegroups.com
Adrian Hoe a �crit :
> Hi,
>
> I am developing web-enabled application using AWS. This application
> has the capability to send SMS via Skype. The development and target
> platform will be Mac OS X. Unfortunately, I can only find Skype
> examples in Objective-C and Python.
>
> Is there any way to interface Ada with Objective-C (or Python) without
> having a wrapper? Has anyone done this before?
Hi,
I don't know ObjectiveC, but about Python, even if there is no direct
wrapper, it couldn't be difficult. Indeed, all the C API in Python use
Pointers, so you just have to create your own wrapper like this:
type PyObject_Ptr is new System.Address;
function A_C_Function_Wrapper_To_Python(pyobj: PyObject_Ptr; ...) return
SomeType;
And so on. I did for MySQL and it's not a big deal, some times of
course, you could have to write a littke C code to help you and bind
your ada program with if (particularly when you want to access to
structure field when you are not sure of the structure size, otherwise,
you can still create the equivalent Ada Structure and map).
I'm still thinking that everything than can me wrapped in C can me
wrapped in Ada even if it's, the first time, a little bit more
complicated but not so much.
Sebastien
next prev parent reply other threads:[~2008-05-26 9:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 6:47 Interfacing with Objective-C or Python Adrian Hoe
2008-05-26 8:25 ` Ivan Levashew
2008-05-26 8:48 ` Adrian Hoe
2008-05-26 9:18 ` Ivan Levashew
2008-06-01 1:28 ` Adrian Hoe
2008-05-26 9:02 ` Sébastien [this message]
2008-06-01 19:40 ` [OT] Skype is dangerous (was 'Re: Interfacing with Objective-C or Python') Ivan Levashew
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox