r6519: move string handling functions to a seperate file
[samba.git] / source / librpc / ndr / libndr.h
index dd775d62ad145b97f9a7acc1c2e988e11e24e493..738e5d61c99bf5dacc7649c4511089ba689edefd 100644 (file)
@@ -143,6 +143,7 @@ struct ndr_print {
 #define NDR_PRINT_OUT_DEBUG(type, p) NDR_PRINT_FUNCTION_DEBUG(type, NDR_OUT, p)
 #define NDR_PRINT_IN_DEBUG(type, p) NDR_PRINT_FUNCTION_DEBUG(type, NDR_IN | NDR_SET_VALUES, p)
 
+#define NDR_BE(ndr) (((ndr)->flags & (LIBNDR_FLAG_BIGENDIAN|LIBNDR_FLAG_LITTLE_ENDIAN)) == LIBNDR_FLAG_BIGENDIAN)
 
 enum ndr_err_code {
        NDR_ERR_CONFORMANT_SIZE,