/usr/include/lyst.h is in libion-dev 3.2.1+dfsg-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /*
public header file for routines that manage Lysts.
Copyright (c) 1997, California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
/* Author: Jeff Biesiadecki, Jet Propulsion Laboratory */
/* Adapted by Scott Burleigh, Jet Propulsion Laboratory */
/* */
#ifndef _LYST_H_
#define _LYST_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* define types
*/
typedef struct LystStruct *Lyst;
typedef struct LystEltStruct *LystElt;
typedef enum {
LIST_SORT_ASCENDING,
LIST_SORT_DESCENDING
} LystSortDirection;
typedef int (*LystCompareFn)(void *,void *);
typedef void (*LystCallback)(LystElt,void *);
/*
* function prototypes
*/
#define lyst_create_using(idx) Lyst_create_using(__FILE__, __LINE__, idx)
Lyst Lyst_create_using(char*,int,int);
#define lyst_create() Lyst_create(__FILE__, __LINE__)
Lyst Lyst_create(char*,int);
#define lyst_clear(list) Lyst_clear(__FILE__, __LINE__, list)
void Lyst_clear(char*,int,Lyst);
#define lyst_destroy(list) Lyst_destroy(__FILE__, __LINE__, list)
void Lyst_destroy(char*,int,Lyst);
void lyst_compare_set(Lyst,LystCompareFn);
LystCompareFn lyst_compare_get(Lyst);
void lyst_direction_set(Lyst,LystSortDirection);
void lyst_delete_set(Lyst,LystCallback,void *);
void lyst_delete_get(Lyst,LystCallback *,void **);
void lyst_insert_set(Lyst,LystCallback,void *);
void lyst_insert_get(Lyst,LystCallback *,void **);
unsigned long lyst_length(Lyst);
#define lyst_insert(list, data) Lyst_insert(__FILE__, __LINE__, list, data)
LystElt Lyst_insert(char*,int,Lyst,void *);
#define lyst_insert_first(list, data) Lyst_insert_first(__FILE__, __LINE__, list, data)
LystElt Lyst_insert_first(char*,int,Lyst,void *);
#define lyst_insert_last(list, data) Lyst_insert_last(__FILE__, __LINE__, list, data)
LystElt Lyst_insert_last(char*,int,Lyst,void *);
#define lyst_insert_before(elt, data) Lyst_insert_before(__FILE__, __LINE__, elt, data)
LystElt Lyst_insert_before(char*,int,LystElt,void *);
#define lyst_insert_after(elt, data) Lyst_insert_after(__FILE__, __LINE__, elt, data)
LystElt Lyst_insert_after(char*,int,LystElt,void *);
#define lyst_delete(elt) Lyst_delete(__FILE__, __LINE__, elt)
void Lyst_delete(char*,int,LystElt);
LystElt lyst_first(Lyst);
LystElt lyst_last(Lyst);
LystElt lyst_next(LystElt);
LystElt lyst_prev(LystElt);
LystElt lyst_search(LystElt,void *);
Lyst lyst_list(LystElt);
void *lyst_data(LystElt);
void *lyst_data_set(LystElt,void *);
void lyst_sort(Lyst);
int lyst_sorted(Lyst);
void lyst_apply(Lyst,LystCallback,void *);
#ifdef __cplusplus
}
#endif
#endif /* _LYST_H_ */
|