grpc
third_party
cares
cares
src
lib
ares_llist.h
Go to the documentation of this file.
1
#ifndef __ARES_LLIST_H
2
#define __ARES_LLIST_H
3
4
5
/* Copyright 1998 by the Massachusetts Institute of Technology.
6
*
7
* Permission to use, copy, modify, and distribute this
8
* software and its documentation for any purpose and without
9
* fee is hereby granted, provided that the above copyright
10
* notice appear in all copies and that both that copyright
11
* notice and this permission notice appear in supporting
12
* documentation, and that the name of M.I.T. not be used in
13
* advertising or publicity pertaining to distribution of the
14
* software without specific, written prior permission.
15
* M.I.T. makes no representations about the suitability of
16
* this software for any purpose. It is provided "as is"
17
* without express or implied warranty.
18
*/
19
20
21
/* Node definition for circular, doubly-linked list */
22
struct
list_node
{
23
struct
list_node
*
prev
;
24
struct
list_node
*
next
;
25
void
*
data
;
26
};
27
28
void
ares__init_list_head
(
struct
list_node
* head);
29
30
void
ares__init_list_node
(
struct
list_node
* node,
void
*
d
);
31
32
int
ares__is_list_empty
(
struct
list_node
* head);
33
34
void
ares__insert_in_list
(
struct
list_node
*
new_node
,
35
struct
list_node
* old_node);
36
37
void
ares__remove_from_list
(
struct
list_node
* node);
38
39
#endif
/* __ARES_LLIST_H */
ares__remove_from_list
void ares__remove_from_list(struct list_node *node)
Definition:
ares_llist.c:55
ares__init_list_head
void ares__init_list_head(struct list_node *head)
Definition:
ares_llist.c:27
list_node::data
void * data
Definition:
ares_llist.h:25
ares__init_list_node
void ares__init_list_node(struct list_node *node, void *d)
Definition:
ares_llist.c:34
list_node::prev
struct list_node * prev
Definition:
ares_llist.h:23
d
static const fe d
Definition:
curve25519_tables.h:19
ares__insert_in_list
void ares__insert_in_list(struct list_node *new_node, struct list_node *old_node)
Definition:
ares_llist.c:46
ares__is_list_empty
int ares__is_list_empty(struct list_node *head)
Definition:
ares_llist.c:41
list_node
Definition:
ares_llist.h:22
new_node
static test_node * new_node(size_t i, size_t *ctr)
Definition:
mpscq_test.cc:40
list_node::next
struct list_node * next
Definition:
ares_llist.h:24
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:43