<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div style="font-family: 'times new roman', 'new york', times, serif; font-size: medium; ">Hi </div><div> 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.</div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Dean</div> <div style="font-size: 12pt;
font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">发件人:</span></b> Jovi Zhang <bookjovi@gmail.com><br> <b><span style="font-weight: bold;">收件人:</span></b> erlang-questions@erlang.org <br> <b><span style="font-weight: bold;">发送日期:</span></b> 2012年4月16日, 星期一, 下午 5:33<br> <b><span style="font-weight: bold;">主题:</span></b> [erlang-questions] operate C data structure using Erlang<br> </font> </div> <br><div id="yiv1909236731">Hi,<div><br></div><div>Currently I'm working a Erlang project which need send msg represent by C language data structure.</div><div>I know that Erlang have record represent by tuple, Is there have any open source project aim on resolve this problem? </div>
<div>generate record format for C data structure automatically? note that there have many C data structure need to transform.</div><div><br></div><div>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. </div>
<div><br></div><div>.jovi</div>
</div><br>_______________________________________________<br>erlang-questions mailing list<br><a ymailto="mailto:erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br><br><br> </div> </div> </div></body></html>