lsflib/include/lsf/list.h
author Markus Brökers <mbroeker@largo.homelinux.org>
Sat, 25 Sep 2010 16:37:03 +0200
changeset 147 f9015072361f
parent 120 430dbec0c228
permissions -rw-r--r--
simple berkdb usage demo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     1
/**
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     2
 * test/demos/lsflib/include/list.h
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     3
 * Copyright (C) 2008 Markus Broeker
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     4
 */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     5
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     6
#ifndef __LIST_H__
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     7
#define __LIST_H__
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     8
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     9
typedef struct node {
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    10
    char *data;
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    11
    struct node *next;
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    12
} Node;
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    13
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    14
void set_limit (long);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    15
Node *addnode (Node *, char *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    16
Node *getnode (Node *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    17
#endif