marshal.h File Reference


Detailed Description

Message marshalling and unmarshalling.

#include <dballe/core/rawmsg.h>
#include <dballe/msg/msgs.h>

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.


Function Documentation

dba_err dba_marshal_decode ( dba_rawmsg  rmsg,
dba_msgs msgs 
)

Decode a message from its raw encoded representation.

Parameters:
rmsg Encoded message
Return values:
msgs The resulting dba_msg
Returns:
The error indicator for the function. See error.h

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.

Parameters:
msgs Message to encode
type Format to use for encoding
Return values:
rmsg The resulting dba_rawmsg
Returns:
The error indicator for the function. See error.h

References dba_error_unimplemented, and DBA_RUN_OR_RETURN.


Generated on Fri Aug 1 15:23:23 2008 for libdballe by  doxygen 1.5.6