Mercurial > pidgin.yaz
diff src/protocols/novell/nmconn.h @ 8874:a2affcdf8e01
[gaim-migrate @ 9643]
"This patch fixes the Novell protocol plugin on big
endian platforms (Bug #947017). It also includes a fix
for disconnects when sending large messages." --Mike Stoddard (novell)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 05 May 2004 20:29:21 +0000 |
parents | 046dd8ef2920 |
children | 6663ad2386d9 |
line wrap: on
line diff
--- a/src/protocols/novell/nmconn.h Tue May 04 17:45:59 2004 +0000 +++ b/src/protocols/novell/nmconn.h Wed May 05 20:29:21 2004 +0000 @@ -110,6 +110,28 @@ NMERR_T nm_read_all(NMConn * conn, char *buf, int len); /** + * Read a 32 bit value and convert it to the host byte order. + * + * @param conn The connection to read from. + * @param val A pointer to unsigned 32 bit integer + * + * @return NM_OK on success, NMERR_TCP_READ if read fails. + */ +NMERR_T +nm_read_uint32(NMConn *conn, guint32 *val); + +/** + * Read a 16 bit value and convert it to the host byte order. + * + * @param conn The connection to read from. + * @param val A pointer to unsigned 16 bit integer + * + * @return NM_OK on success, NMERR_TCP_READ if read fails. + */ +NMERR_T +nm_read_uint16(NMConn *conn, guint16 *val); + +/** * Dispatch a request to the server. * * @param conn The connection.