1*bb4544dfSespie /* $OpenBSD: lst_t.h,v 1.3 2010/07/19 19:46:44 espie Exp $ */ 2f7923656Sespie 3f7923656Sespie /* 4f7923656Sespie * Copyright (c) 2001 Marc Espie. 5f7923656Sespie * 6f7923656Sespie * Redistribution and use in source and binary forms, with or without 7f7923656Sespie * modification, are permitted provided that the following conditions 8f7923656Sespie * are met: 9f7923656Sespie * 1. Redistributions of source code must retain the above copyright 10f7923656Sespie * notice, this list of conditions and the following disclaimer. 11f7923656Sespie * 2. Redistributions in binary form must reproduce the above copyright 12f7923656Sespie * notice, this list of conditions and the following disclaimer in the 13f7923656Sespie * documentation and/or other materials provided with the distribution. 14f7923656Sespie * 15f7923656Sespie * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS 16f7923656Sespie * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17f7923656Sespie * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 18f7923656Sespie * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBSD 19f7923656Sespie * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20f7923656Sespie * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21f7923656Sespie * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22f7923656Sespie * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23f7923656Sespie * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24f7923656Sespie * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25f7923656Sespie * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26f7923656Sespie */ 27f7923656Sespie 28f7923656Sespie typedef struct List_ { 29f7923656Sespie LstNode firstPtr; /* first node in list */ 30f7923656Sespie LstNode lastPtr; /* last node in list */ 31f7923656Sespie } LIST; 32f7923656Sespie 33f7923656Sespie #define LIST_TYPE 34