Blame ares_llist.h

Packit 514978
#ifndef __ARES_LLIST_H
Packit 514978
#define __ARES_LLIST_H
Packit 514978
Packit 514978
Packit 514978
/* Copyright 1998 by the Massachusetts Institute of Technology.
Packit 514978
 *
Packit 514978
 * Permission to use, copy, modify, and distribute this
Packit 514978
 * software and its documentation for any purpose and without
Packit 514978
 * fee is hereby granted, provided that the above copyright
Packit 514978
 * notice appear in all copies and that both that copyright
Packit 514978
 * notice and this permission notice appear in supporting
Packit 514978
 * documentation, and that the name of M.I.T. not be used in
Packit 514978
 * advertising or publicity pertaining to distribution of the
Packit 514978
 * software without specific, written prior permission.
Packit 514978
 * M.I.T. makes no representations about the suitability of
Packit 514978
 * this software for any purpose.  It is provided "as is"
Packit 514978
 * without express or implied warranty.
Packit 514978
 */
Packit 514978
Packit 514978
Packit 514978
/* Node definition for circular, doubly-linked list */
Packit 514978
struct list_node {
Packit 514978
  struct list_node *prev;
Packit 514978
  struct list_node *next;
Packit 514978
  void* data;
Packit 514978
};
Packit 514978
Packit 514978
void ares__init_list_head(struct list_node* head);
Packit 514978
Packit 514978
void ares__init_list_node(struct list_node* node, void* d);
Packit 514978
Packit 514978
int ares__is_list_empty(struct list_node* head);
Packit 514978
Packit 514978
void ares__insert_in_list(struct list_node* new_node,
Packit 514978
                          struct list_node* old_node);
Packit 514978
Packit 514978
void ares__remove_from_list(struct list_node* node);
Packit 514978
Packit 514978
#endif /* __ARES_LLIST_H */