2 * $Id: kl_htnode.h 1122 2004-12-21 23:26:23Z tjm $
4 * This file is part of libutil.
5 * A library which provides auxiliary functions.
6 * libutil is part of lkcdutils -- utilities for Linux kernel crash dumps.
8 * Created by Silicon Graphics, Inc.
9 * Contributions by IBM, NEC, and others
11 * Copyright (C) 1999 - 2002 Silicon Graphics, Inc. All rights reserved.
12 * Copyright (C) 2001, 2002 IBM Deutschland Entwicklung GmbH, IBM Corporation
13 * Copyright 2000 Junichi Nomura, NEC Solutions <j-nomura@ce.jp.nec.com>
15 * This code is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser Public License as published by
17 * the Free Software Foundation; either version 2.1 of the License, or
18 * (at your option) any later version. See the file COPYING for more
25 /* Node structure for use in hierarchical trees (htrees).
27 typedef struct htnode_s {
28 struct htnode_s *next;
29 struct htnode_s *prev;
30 struct htnode_s *parent;
31 struct htnode_s *children;
44 /* Function prototypes
46 htnode_t *kl_next_htnode(
47 htnode_t * /* htnode pointer */);
49 htnode_t *kl_prev_htnode(
50 htnode_t * /* htnode pointer */);
53 htnode_t * /* htnode pointer */,
54 htnode_t * /* new htnode pointer*/,
58 htnode_t * /* htnode pointer */,
59 htnode_t * /* new htnode pointer*/,
63 htnode_t * /* htnode pointer */,
64 htnode_t * /* new htnode pointer*/,
67 void ht_insert_next_htnode(
68 htnode_t * /* htnode pointer */,
69 htnode_t * /* new htnode pointer*/);
71 #endif /* __KL_HTNODE_H */