misc.idl: Add reference to the slightly odd representation of if_version
authorAndrew Bartlett <abartlet@samba.org>
Fri, 19 Feb 2010 04:55:28 +0000 (15:55 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 19 Feb 2010 05:32:49 +0000 (16:32 +1100)
I found this confusing, so explian for the next poor programmer who
has to get up to speed with this quickly.

Andrew Bartlett

librpc/idl/misc.idl

index adaac9a5336a6b675575b7b490f75554d5f337d2..a60d30bef2c450e02c5ab008f45b07ebc74f0653 100644 (file)
@@ -21,6 +21,9 @@ interface misc
 
        typedef [public] struct {
                GUID uuid;
+               /* The major version is encoded in the 16 least significant bits, 
+                  the minor in the 16 most significant bits.  
+                  http://www.opengroup.org/onlinepubs/9629399/chap12.htm */
                uint32 if_version;
        } ndr_syntax_id;