OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid.pod versions 1.14 and 1.15
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid.pod 1.14 -> 1.15

--- uuid.pod     2004/02/13 15:13:14     1.14
+++ uuid.pod     2004/02/13 16:01:23     1.15
@@ -179,22 +179,35 @@
 
 =over 4
 
+=item B<UUID_VERSION>
+
+The hexadecimal encoded B<OSSP uuid> version. This allows compile-time
+checking of the B<OSSP uuid> version. For run-time checking use
+B<uuid_version>() instead.
+
+The hexadecimal encoding for a version "$I<v>.$I<r>$I<t>$I<l>" is
+calculated with the B<GNU shtool> B<version> command and is (in
+Perl-style for concise description) "sprintf('0x%x%02x%d%02x', $I<v>,
+$I<r>, {qw(s 9 . 2 b 1 a 0)}->{$I<t>}, ($I<t> eq 's' ? 99 : $I<l>))",
+i.e., the version 0.9.6 is encoded as "0x009206".
+
 =item B<UUID_LEN_BIN>, B<UUID_LEN_STR>
 
 The number of octets of the UUID binary and string representations.
 Notice that the lengths of the string representation does I<not> include
 the necessary C<NUL> termination character.
 
-=item B<UUID_VERSION1>, B<UUID_VERSION3>, B<UUID_VERSION4>, B<UUID_MCASTRND>
+=item B<UUID_MAKE_V1>, B<UUID_MAKE_V3>, B<UUID_MAKE_V4>, B<UUID_MAKE_MC>
 
-The I<mode> bits for use with B<uuid_make>(). The
-B<UUID_VERSION>I<N> specify which UUID version to generate. The
-B<UUID_MCASTRND> forces the use of a random multi-cast MAC address
-instead of the real physical MAC address in version 1 UUIDs.
+The I<mode> bits for use with B<uuid_make>(). The B<UUID_MAKE_V>I<N>
+specify which UUID version to generate. The B<UUID_MAKE_MC> forces the
+use of a random multi-cast MAC address instead of the real physical MAC
+address in version 1 UUIDs.
 
-=item B<UUID_RC_OK>, B<UUID_RC_ARG>, B<UUID_RC_MEM>, B<UUID_RC_SYS>, B<UUID_RC_INT>
+=item B<UUID_RC_OK>, B<UUID_RC_ARG>, B<UUID_RC_MEM>, B<UUID_RC_SYS>, B<UUID_RC_INT>, B<UUID_RC_IMP>
 
 The possible numerical return-codes of API functions.
+The C<UUID_RC_OK> indicates success, the others indicate errors.
 Use B<uuid_error>() to translate them into string versions.
 
 =item B<UUID_FMT_BIN>, B<UUID_FMT_STR>, B<UUID_FMT_TXT>
@@ -313,6 +326,12 @@
 Returns a constant string representation corresponding to the
 return-code I<rc> for use in displaying B<OSSP uuid> errors.
 
+=item unsigned long B<uuid_version>(void);
+
+Returns the hexadecimal encoded B<OSSP uuid> version as compiled into
+the library object files. This allows run-time checking of the B<OSSP
+uuid> version. For compile-time checking use C<UUID_VERSION> instead.
+
 =back
 
 =head1 EXAMPLE

CVSTrac 2.0.1