Ignore:
Timestamp:
Apr 30, 2007, 12:28:55 AM (13 years ago)
Author:
Bruno Cornec
Message:

Update for the mr_list structure to have a pointer on function to remove data allocated in the structure mr_list_elt in the data field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/include/mr_list.h

    r1361 r1363  
    2323    void *data;
    2424
     25    /* Function to unallocate memory contained in data */
     26    void (*mr_free_data)(void *data);
     27
    2528    /* The neighbours (pointers to next and previous) */
    2629    struct mr_list_elt *next;
     
    3235
    3336void mr_list_alloc(struct mr_list *list);
    34 void mr_list_alloc_elt(struct mr_list_elt *elt, void *data);
     37void mr_list_alloc_elt(struct mr_list_elt *elt, void *data, void (*mr_free_data)(void *data));
    3538void mr_list_free(struct mr_list *list);
    3639void mr_list_free_elt(struct mr_list_elt *elt);
Note: See TracChangeset for help on using the changeset viewer.