GenLinkedList.h revision 4b22b9337f359bfd063322244f5336cc7c6ffcfa
/* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
File: GenLinkedList.c
Contains: interface to generic linked lists.
Version: 1.0
Tabs: 4 spaces
Change History (most recent first):
$Log: GenLinkedList.h,v $
Revision 1.3 2006/08/14 23:24:56 cheshire
Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
Revision 1.2 2004/02/05 07:41:08 cheshire
Add Log header
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef __GenLinkedList__
#define __GenLinkedList__
#include <stddef.h>
struct GenLinkedList
{
void *Head,
*Tail;
};
typedef struct GenLinkedList GenLinkedList;
struct GenDoubleLinkedList
{
void *Head,
*Tail;
};
typedef struct GenDoubleLinkedList GenDoubleLinkedList;
/* A GenLinkedOffsetList is like a GenLinkedList that stores the *Next field as a signed */
/* offset from the address of the beginning of the element, rather than as a pointer. */
struct GenLinkedOffsetList
{
Tail;
};
typedef struct GenLinkedOffsetList GenLinkedOffsetList;
#endif // __GenLinkedList__