I'm going to assume you aren't trying to use protobuf's as a JNI workaround, 
and rather want it as an rpc solution.

I am not aware of a tool that can go from C declarations to protobuf ones. In a 
lot of ways, the syntaxes are similar, so it isn't much work to convert from C. 
That said, there are important differences that aid in portability and language 
neutrality, so it is time well spent. You may find you have somewhat different 
declarations after you have been through the exercise.

The other thing is you need to select an rpc framework to work with:  
http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations

--Chris

On Jul 30, 2011, at 6:27 AM, Nav <navni...@gmail.com> wrote:

> I have a C/C++ header file with some structures and functions in it. I
> would like to generate a .proto file from it so that i could use my c
> library in Java using protocol buffers. Is there any script or command
> to do so?
> Thx
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Protocol Buffers" group.
> To post to this group, send email to protobuf@googlegroups.com.
> To unsubscribe from this group, send email to 
> protobuf+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/protobuf?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to