Re: Bindings to other languages
- From: "Kevin Kubasik" <kevin kubasik net>
- To: Sharninder <sharninder_khera symantec com>
- Cc: dashboard-hackers gnome org
- Subject: Re: Bindings to other languages
- Date: Wed, 19 Apr 2006 07:40:17 -0400
Ok, a little poking around hasn't revealed a super clear or defined
solution, but you really have 2 options.
1) Try to look for an implementation of whatever language you are
using in a Mono runtime, in which case you can access beagle through
its C# libs.
2) Ok, this one seems like a more feasible solution for most. SWIG
stands for Simplified Wrapper and Interface Generator (swig.org) and
can be used to easily take .c files and generate bindings to most
popular managed languages. (Perl, Python, PHP, Java, Ruby, Tcl and
Lisp are the big ones, and there are more) Try reading a little at
http://www.swig.org/tutorial.html
and you'll see how easy it is to generate a ruby interface to the
libbeagle bindings. While it might not be a perfect solution, it does
offer in-code access to a lot more.
Cheers,
Kevin Kubasik
On 4/19/06, Sharninder <sharninder_khera symantec com> wrote:
>
> > Until now I have already written some Ruby On Rails code which gives
> > beagle a simple web interface.
> > (https://nach-vorne.de/trac/beagle_on_rails) I am using the
> > command-line tool "beagle-query" and parse its results but i'm pretty
> > unhappy with this solution and I would like to use a more convenient
> > way to access beagle.
> >
>
> I have been thinking about the same question. Is there an easy way to
> access beagle from, say, php or perl ?
>
> --
> Sharninder
>
> _______________________________________________
> Dashboard-hackers mailing list
> Dashboard-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/dashboard-hackers
>
--
Cheers,
Kevin Kubasik
http://blog.kubasik.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]