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

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


Generated on Fri Jun 22 14:21:33 2007 for libdballe-msg by  doxygen 1.5.2