• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2005 Red Hat, Inc. */
2 
3 #ifndef _SEMANAGE_BOOLEANS_ACTIVE_H_
4 #define _SEMANAGE_BOOLEANS_ACTIVE_H_
5 
6 #include <semanage/boolean_record.h>
7 #include <semanage/handle.h>
8 
9 extern int semanage_bool_set_active(semanage_handle_t * handle,
10 				    const semanage_bool_key_t * key,
11 				    const semanage_bool_t * data);
12 
13 extern int semanage_bool_query_active(semanage_handle_t * handle,
14 				      const semanage_bool_key_t * key,
15 				      semanage_bool_t ** response);
16 
17 extern int semanage_bool_exists_active(semanage_handle_t * handle,
18 				       const semanage_bool_key_t * key,
19 				       int *response);
20 
21 extern int semanage_bool_count_active(semanage_handle_t * handle,
22 				      unsigned int *response);
23 
24 extern int semanage_bool_iterate_active(semanage_handle_t * handle,
25 					int (*handler) (const semanage_bool_t *
26 							record, void *varg),
27 					void *handler_arg);
28 
29 extern int semanage_bool_list_active(semanage_handle_t * handle,
30 				     semanage_bool_t *** records,
31 				     unsigned int *count);
32 
33 #endif
34