Changeset 2028 for Whitix

Show
Ignore:
Timestamp:
04/02/09 21:30:14 (3 years ago)
Author:
mwhitworth
Message:

Don't use attributes in keobject code, remove KeObjectPopulate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/lib/keobject.c

    r1668 r2028  
    6464SYMBOL_EXPORT(KeObjectFree); 
    6565 
    66 static int KeObjectPopulate(struct KeObject* object) 
    67 { 
    68         struct KeObjType* type; 
    69          
    70         if (!object->parent) 
    71                 return 0; 
    72                  
    73         type = object->parent->type; 
    74  
    75         if (type && type->attributes)    
    76                 /* Use the attributes field of the type to populate the configuration 
    77                  * directory */ 
    78                  IcAddAttributes(object, type->attributes); 
    79          
    80         return 0; 
    81 } 
    82  
    8366int KeObjectAttach(struct KeObject* object, const char* name, ...) 
    8467{ 
     
    123106         if (!object->dir) 
    124107                return -EIO; 
    125                  
    126          /* Populate the configuration directory. */ 
    127          KeObjectPopulate(object); 
    128108          
    129109         /* Add the new object to the parent's list of KeObjects. */ 
     
    142122{ 
    143123        struct KeObject* curr; 
     124        static int i = 0; 
    144125         
    145126        SpinLock(&set->lock);