1f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter/*
2f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * Copyright 2011 Tresys Technology, LLC. All rights reserved.
3f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *
4f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * Redistribution and use in source and binary forms, with or without
5f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * modification, are permitted provided that the following conditions are met:
6f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *
7f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *    1. Redistributions of source code must retain the above copyright notice,
8f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *       this list of conditions and the following disclaimer.
9f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *
10f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *    2. Redistributions in binary form must reproduce the above copyright notice,
11f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *       this list of conditions and the following disclaimer in the documentation
12f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *       and/or other materials provided with the distribution.
13f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *
14f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS
15f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
19f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
22f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter *
25f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * The views and conclusions contained in the software and documentation are those
26f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * of the authors and should not be interpreted as representing official policies,
27f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter * either expressed or implied, of Tresys Technology, LLC.
28f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter */
29f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter
30f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter#include "cil_flavor.h"
31f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter#include "cil_tree.h"
32f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter#include "cil_list.h"
33f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter
34f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter#ifndef CIL_FIND_H_
35f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter#define CIL_FIND_H_
36f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter
37f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carterint cil_find_matching_avrule_in_ast(struct cil_tree_node *current, enum cil_flavor flavor, void *target, struct cil_list *matching, int match_self);
38f5602f5ff980435ee2aefed35ba643310ceeac25Steve Lawrencestruct cil_list *cil_expand_class(struct cil_class *class);
39f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter
40f9bdf580b8a5cb19a08f52ed740b603612e41b01James Carter#endif
41