@@ -11,29 +11,44 @@ #import "OFObject.h" typedef struct __of_list_object { - id object; struct __of_list_object *next; struct __of_list_object *prev; + id object; } of_list_object_t; /** * The OFList class provides easy to use double-linked lists. */ @interface OFList: OFObject { of_list_object_t *first; of_list_object_t *last; + size_t listobj_size; BOOL retain_and_release; } /** * \return A new autoreleased OFList */ + list; +/** + * \param listobj_size The size of a list object + * \return A new autoreleased OFList with the specified list object size + */ ++ listWithListObjectSize: (size_t)listobj_size; + +/** + * Initializes an already allocated OFList with the specified list object size. + * + * \param listobj_size The size of a list object + * \return An initialized OFList with the specified list object size + */ +- initWithListObjectSize: (size_t)listobj_size; + /** * Initializes an already allocated OFList that does not retain/releas objects * added to it.. * * \return An initialized OFList