libdballe 4.0.18
|
Message marshalling and unmarshalling. More...
Go to the source code of this file.
Functions | |
dba_err | dba_marshal_decode (dba_rawmsg rmsg, dba_msgs *msgs) |
Decode a message from its raw encoded representation. | |
dba_err | dba_marshal_encode (dba_msgs msgs, dba_encoding type, dba_rawmsg *rmsg) |
Encode a message into its raw encoded representation. |
Message marshalling and unmarshalling.
dba_err dba_marshal_decode | ( | dba_rawmsg | rmsg, |
dba_msgs * | msgs | ||
) |
Decode a message from its raw encoded representation.
rmsg | Encoded message |
msgs | The resulting dba_msg |
References DBA_RUN_OR_RETURN, and _dba_rawmsg::encoding.
dba_err dba_marshal_encode | ( | dba_msgs | msgs, |
dba_encoding | type, | ||
dba_rawmsg * | rmsg | ||
) |
Encode a message into its raw encoded representation.
msgs | Message to encode |
type | Format to use for encoding |
rmsg | The resulting dba_rawmsg |
References dba_error_unimplemented, and DBA_RUN_OR_RETURN.