ossp-pkg/xds/xds.h.in 1.14 -> 1.15
--- xds.h.in 2001/08/12 11:31:45 1.14
+++ xds.h.in 2001/08/22 20:19:50 1.15
@@ -129,6 +129,8 @@
xds_declare_formatting_engine(xdr_encode_int64);
xds_declare_formatting_engine(xdr_decode_int64);
#endif
+xds_declare_formatting_engine(xdr_encode_float);
+xds_declare_formatting_engine(xdr_decode_float);
xds_declare_formatting_engine(xdr_encode_double);
xds_declare_formatting_engine(xdr_decode_double);
xds_declare_formatting_engine(xdr_encode_octetstream);
@@ -157,5 +159,14 @@
xds_declare_formatting_engine(xml_encode_string);
xds_declare_formatting_engine(xml_decode_string);
-#endif /* __XDS_H__ */
+typedef struct
+ {
+ unsigned int sign :1;
+ unsigned int fraction :23;
+ int exponent :8;
+ }
+xds_float_t;
+
+int float2xds_float(xds_float_t* new_num, float num);
+#endif /* __XDS_H__ */
|
|