Changeset 2028
- Timestamp:
- 04/02/09 21:30:14 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/lib/keobject.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/lib/keobject.c
r1668 r2028 64 64 SYMBOL_EXPORT(KeObjectFree); 65 65 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 configuration77 * directory */78 IcAddAttributes(object, type->attributes);79 80 return 0;81 }82 83 66 int KeObjectAttach(struct KeObject* object, const char* name, ...) 84 67 { … … 123 106 if (!object->dir) 124 107 return -EIO; 125 126 /* Populate the configuration directory. */127 KeObjectPopulate(object);128 108 129 109 /* Add the new object to the parent's list of KeObjects. */ … … 142 122 { 143 123 struct KeObject* curr; 124 static int i = 0; 144 125 145 126 SpinLock(&set->lock);
