src/list.c

changeset 398
8d506ed6c1c0
parent 390
d345541018fa
child 401
e6a8f7fb0c45
     1.1 --- a/src/list.c	Sun Feb 07 18:08:21 2021 +0100
     1.2 +++ b/src/list.c	Sun Feb 07 19:42:12 2021 +0100
     1.3 @@ -27,3 +27,23 @@
     1.4   */
     1.5  
     1.6  #include "cx/list.h"
     1.7 +
     1.8 +int cxListAdd(CxList list, void *elem) {
     1.9 +    return list->cl->add(&list->data, elem);
    1.10 +}
    1.11 +
    1.12 +int cxListInsert(CxList list, size_t index, void *elem) {
    1.13 +    return list->cl->insert(&list->data, index, elem);
    1.14 +}
    1.15 +
    1.16 +void *cxListRemove(CxList list, size_t index) {
    1.17 +    return list->cl->remove(&list->data, index);
    1.18 +}
    1.19 +
    1.20 +size_t cxListFind(CxList list, void *elem) {
    1.21 +    return list->cl->find(&list->data, elem);
    1.22 +}
    1.23 +
    1.24 +size_t cxListSize(CxList list) {
    1.25 +    return list->cl->size(&list->data);
    1.26 +}

mercurial