Hello Ashi,

after the weekend I think we can further simplify the Freechain interface. The node_size and bump_count are not necessary for the Freechain core routines (_Freechain_Get() and _Freechain_Put()). Thus we should also remove them. In case the extend handler needs more information you can use something like that:

typedef struct {
  Freechain_Control super;
  size_t bump_count;
} MyFreechain;

bool MyFreechainExtend(Freechain_Control *super)
{
  MyFreechain *self = (MyFreechain *) super;

  ...
}

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to