xref: /aosp_15_r20/external/selinux/restorecond/stringslist.h (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
1*2d543d20SAndroid Build Coastguard Worker /* stringslist.h --
2*2d543d20SAndroid Build Coastguard Worker  * Copyright 2006 Red Hat Inc., Durham, North Carolina.
3*2d543d20SAndroid Build Coastguard Worker  * All Rights Reserved.
4*2d543d20SAndroid Build Coastguard Worker  *
5*2d543d20SAndroid Build Coastguard Worker  * This program is free software; you can redistribute it and/or modify
6*2d543d20SAndroid Build Coastguard Worker  * it under the terms of the GNU General Public License as published by
7*2d543d20SAndroid Build Coastguard Worker  * the Free Software Foundation; either version 2 of the License, or
8*2d543d20SAndroid Build Coastguard Worker  * (at your option) any later version.
9*2d543d20SAndroid Build Coastguard Worker  *
10*2d543d20SAndroid Build Coastguard Worker  * This program is distributed in the hope that it will be useful,
11*2d543d20SAndroid Build Coastguard Worker  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*2d543d20SAndroid Build Coastguard Worker  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*2d543d20SAndroid Build Coastguard Worker  * GNU General Public License for more details.
14*2d543d20SAndroid Build Coastguard Worker  *
15*2d543d20SAndroid Build Coastguard Worker  * You should have received a copy of the GNU General Public License
16*2d543d20SAndroid Build Coastguard Worker  * along with this program; if not, write to the Free Software
17*2d543d20SAndroid Build Coastguard Worker  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18*2d543d20SAndroid Build Coastguard Worker  *
19*2d543d20SAndroid Build Coastguard Worker  * Authors:
20*2d543d20SAndroid Build Coastguard Worker  *   Dan Walsh <[email protected]>
21*2d543d20SAndroid Build Coastguard Worker  *
22*2d543d20SAndroid Build Coastguard Worker  */
23*2d543d20SAndroid Build Coastguard Worker #ifndef STRINGSLIST_H
24*2d543d20SAndroid Build Coastguard Worker #define STRINGSLIST_H
25*2d543d20SAndroid Build Coastguard Worker 
26*2d543d20SAndroid Build Coastguard Worker struct stringsList {
27*2d543d20SAndroid Build Coastguard Worker 	struct stringsList *next;
28*2d543d20SAndroid Build Coastguard Worker 	char *string;
29*2d543d20SAndroid Build Coastguard Worker };
30*2d543d20SAndroid Build Coastguard Worker 
31*2d543d20SAndroid Build Coastguard Worker void strings_list_free(struct stringsList *list);
32*2d543d20SAndroid Build Coastguard Worker void strings_list_add(struct stringsList **list, const char *string);
33*2d543d20SAndroid Build Coastguard Worker void strings_list_print(struct stringsList *list);
34*2d543d20SAndroid Build Coastguard Worker int strings_list_find(struct stringsList *list, const char *string, int *exact);
35*2d543d20SAndroid Build Coastguard Worker int strings_list_diff(struct stringsList *from, struct stringsList *to);
36*2d543d20SAndroid Build Coastguard Worker 
37*2d543d20SAndroid Build Coastguard Worker #endif
38