Changeset 5732:c992b3a63250 in roaraudio for libroar


Ignore:
Timestamp:
11/07/12 13:07:49 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to return the null uuid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/uuid.c

    r5683 r5732  
    8787const roar_uuid_t * roar_uuid_get_ns_real(const char * ns) { 
    8888 static const roar_uuid_t 
    89   dns  = {0x6b, 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}, 
    90   url  = {0x6b, 0xa7, 0xb8, 0x11, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}, 
    91   oid  = {0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}, 
    92   x500 = {0x6b, 0xa7, 0xb8, 0x14, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}; 
     89  nulluuid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 
     90  dns      = {0x6b, 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}, 
     91  url      = {0x6b, 0xa7, 0xb8, 0x11, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}, 
     92  oid      = {0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}, 
     93  x500     = {0x6b, 0xa7, 0xb8, 0x14, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8}; 
    9394 static const void * null_ptr = NULL; 
    9495 
     
    9899 } 
    99100 
    100  if ( !strcasecmp(ns, "dns") ) { 
     101 if ( !strcasecmp(ns, "null") ) { 
     102  return &nulluuid; 
     103 } else if ( !strcasecmp(ns, "dns") ) { 
    101104  return &dns; 
    102105 } else if ( !strcasecmp(ns, "url") ) { 
Note: See TracChangeset for help on using the changeset viewer.