1 /* Copyright (C) 2005 Red Hat, Inc. */
2 
3 #ifndef _SEMANAGE_INTERFACES_POLICY_H_
4 #define _SEMANAGE_INTERFACES_POLICY_H_
5 
6 #include <semanage/handle.h>
7 #include <semanage/iface_record.h>
8 
9 extern int semanage_iface_query(semanage_handle_t * handle,
10 				const semanage_iface_key_t * key,
11 				semanage_iface_t ** response);
12 
13 extern int semanage_iface_exists(semanage_handle_t * handle,
14 				 const semanage_iface_key_t * key,
15 				 int *response);
16 
17 extern int semanage_iface_count(semanage_handle_t * handle,
18 				unsigned int *response);
19 
20 extern int semanage_iface_iterate(semanage_handle_t * handle,
21 				  int (*handler) (const semanage_iface_t *
22 						  record, void *varg),
23 				  void *handler_arg);
24 
25 extern int semanage_iface_list(semanage_handle_t * handle,
26 			       semanage_iface_t *** records,
27 			       unsigned int *count);
28 
29 #endif
30