Ross McFarland was doing some good work on this a while back. See the forwarded 
message below.

Chad

On 12/1/08 2:08 PM, "Mark Slee" <[EMAIL PROTECTED]> wrote:

Moving to the dev list. There has definitely been talk of this but I'm not sure 
that anyone has yet started in on building it.

I don't think we have a task for this in the JIRA either. Anyone interested in 
creating and owning that?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pace Davis
Sent: Friday, November 28, 2008 3:27 AM
To: [EMAIL PROTECTED]
Subject: C interface

Is there any plans for a pure C interface to Thrift?  I have seen some musings 
here and there but can not find anything with substance saying it will happen.


------ Forwarded Message
From: Ross McFarland <[EMAIL PROTECTED]>
Date: Mon, 28 Apr 2008 13:21:42 -0700
To: Thrift Mailing List <[EMAIL PROTECTED]>
Subject: [thrift] C client work

very alpha, but it's now functioning. i ended up running in to the
TFramedTransport stuff and things got messy. decided the best thing to
do was to, for now, a more literal port of that portion of things. the
"client" now works, but is in no shape for general consumption.

have a look here:
    
http://thrift-git.thruhere.net/gitweb/?p=thrift.git;a=tree;h=refs/heads/pri/rmcfarland/c_bindings;hb=pri/rmcfarland/c_bindings

t_c_generator.cpp and the stuff in gen-c/

memory management, container types, error handling, and exceptions are
very initial/non-existent. i have been able to talk back and forth to
one of my services but the service only has strings as
parameters/returns so other things may or may not work. (all of the
base types except i64 and double should work)

my next step is going to be to make it more usable. turning the
thrift_* stuff in to an installed library. at that point you should be
able to grab c_bindings and play around with generating a c client
pretty easily.

questions/comments/problems let me know.
--
-rm


Reply via email to