src/cx/list.h

changeset 404
86ebc3745e62
parent 401
e6a8f7fb0c45
child 405
44efaa54d63d
     1.1 --- a/src/cx/list.h	Sun Feb 07 21:14:39 2021 +0100
     1.2 +++ b/src/cx/list.h	Sun Feb 07 21:26:48 2021 +0100
     1.3 @@ -51,11 +51,14 @@
     1.4  
     1.5  typedef size_t (*cx_list_find)(cx_list *list, void *elem);
     1.6  
     1.7 +typedef void *(*cx_list_last)(cx_list *list);
     1.8 +
     1.9  typedef struct {
    1.10      cx_list_add add;
    1.11      cx_list_insert insert;
    1.12      cx_list_remove remove;
    1.13      cx_list_find find;
    1.14 +    cx_list_last last;
    1.15  } cx_list_class;
    1.16  
    1.17  struct cx_list_s {
    1.18 @@ -73,4 +76,6 @@
    1.19  
    1.20  size_t cxListFind(CxList list, void *elem);
    1.21  
    1.22 +void *cxListLast(CxList list);
    1.23 +
    1.24  #endif /* UCX_LIST_H */

mercurial