/usr/include/cxslist.h is in libcext-dev 5.3.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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | /* $Id: cxslist.h,v 1.6 2006/06/12 09:54:44 rpalsa Exp $
*
* This file is part of the ESO C Extension Library
* Copyright (C) 2001-2006 European Southern Observatory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* $Author: rpalsa $
* $Date: 2006/06/12 09:54:44 $
* $Revision: 1.6 $
* $Name: cpl-5_3_0-BRANCH $
*/
#ifndef CX_SLIST_H
#define CX_SLIST_H
#include <cxmemory.h>
CX_BEGIN_DECLS
typedef struct _cx_slnode_ *cx_slist_iterator;
typedef const struct _cx_slnode_ *cx_slist_const_iterator;
typedef struct _cx_slist_ cx_slist;
/*
* Create, copy and destroy operations
*/
cx_slist *cx_slist_new(void);
void cx_slist_delete(cx_slist *);
void cx_slist_destroy(cx_slist *, cx_free_func);
/*
* Nonmodifying operations
*/
cxsize cx_slist_size(const cx_slist *);
cxbool cx_slist_empty(const cx_slist *);
cxsize cx_slist_max_size(const cx_slist *);
/*
* Assignment operations
*/
void cx_slist_swap(cx_slist *, cx_slist *);
cxptr cx_slist_assign(cx_slist *, cx_slist_iterator, cxcptr);
/*
* Element access
*/
cxptr cx_slist_front(const cx_slist *);
cxptr cx_slist_back(const cx_slist *);
cxptr cx_slist_get(const cx_slist *, cx_slist_const_iterator);
/*
* Iterator functions
*/
cx_slist_iterator cx_slist_begin(const cx_slist *);
cx_slist_iterator cx_slist_end(const cx_slist *);
cx_slist_iterator cx_slist_next(const cx_slist *, cx_slist_const_iterator);
/*
* Inserting and removing elements
*/
void cx_slist_push_front(cx_slist *, cxcptr);
cxptr cx_slist_pop_front(cx_slist *);
void cx_slist_push_back(cx_slist *, cxcptr);
cxptr cx_slist_pop_back(cx_slist *);
cx_slist_iterator cx_slist_insert(cx_slist *, cx_slist_iterator, cxcptr);
cx_slist_iterator cx_slist_erase(cx_slist *, cx_slist_iterator, cx_free_func);
cxptr cx_slist_extract(cx_slist *, cx_slist_iterator);
void cx_slist_remove(cx_slist *, cxcptr);
void cx_slist_clear(cx_slist *);
/*
* Splice functions
*/
void cx_slist_unique(cx_slist *, cx_compare_func);
void cx_slist_splice(cx_slist *, cx_slist_iterator, cx_slist *,
cx_slist_iterator, cx_slist_iterator);
void cx_slist_merge(cx_slist *, cx_slist *, cx_compare_func);
void cx_slist_sort(cx_slist *, cx_compare_func);
void cx_slist_reverse(cx_slist *);
CX_END_DECLS
#endif /* CX_SLIST_H */
|