[erlang-questions] re: operate C data structure using Erlang

dean 宋 dean_yanqing@REDACTED
Mon Apr 16 14:59:32 CEST 2012


Hi 
   The situation Erlang need to follow C style data structure, before send to C, you need to convert Erlang record into C style date structure, right? And you said there are pretty  C structures. In fact you can implement an module encode/decode Erlang record into C style automatically. Phase  C head file then write to an file that can tell Erlang how to do the alignment for specify signal.  It's not too difficult, just write it by yourself.
 
Dean

________________________________
 发件人: Jovi Zhang <bookjovi@REDACTED>
收件人: erlang-questions@REDACTED 
发送日期: 2012年4月16日, 星期一, 下午 5:33
主题: [erlang-questions] operate C data structure using Erlang
 

Hi,

Currently I'm working a Erlang project which need send msg represent by C language data structure.
I know that Erlang have record represent by tuple, Is there have any open source project aim on resolve this problem? 
generate record format for C data structure automatically? note that there have many C data structure need to transform.

There have JSON and protobuf, but none is toward plain C data structure, I cannot change the message protocol now because Erlang node need to communicate with C node.  

.jovi
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120416/0e81a630/attachment.htm>


More information about the erlang-questions mailing list