Home | History | Annotate | Download | only in semanage
      1 /* Copyright (C) 2005 Red Hat, Inc. */
      2 
      3 #ifndef _SEMANAGE_FCONTEXTS_LOCAL_H_
      4 #define _SEMANAGE_FCONTEXTS_LOCAL_H_
      5 
      6 #include <semanage/fcontext_record.h>
      7 #include <semanage/handle.h>
      8 
      9 extern int semanage_fcontext_modify_local(semanage_handle_t * handle,
     10 					  const semanage_fcontext_key_t * key,
     11 					  const semanage_fcontext_t * data);
     12 
     13 extern int semanage_fcontext_del_local(semanage_handle_t * handle,
     14 				       const semanage_fcontext_key_t * key);
     15 
     16 extern int semanage_fcontext_query_local(semanage_handle_t * handle,
     17 					 const semanage_fcontext_key_t * key,
     18 					 semanage_fcontext_t ** response);
     19 
     20 extern int semanage_fcontext_exists_local(semanage_handle_t * handle,
     21 					  const semanage_fcontext_key_t * key,
     22 					  int *response);
     23 
     24 extern int semanage_fcontext_count_local(semanage_handle_t * handle,
     25 					 unsigned int *response);
     26 
     27 extern int semanage_fcontext_iterate_local(semanage_handle_t * handle,
     28 					   int (*handler) (const
     29 							   semanage_fcontext_t *
     30 							   record, void *varg),
     31 					   void *handler_arg);
     32 
     33 extern int semanage_fcontext_list_local(semanage_handle_t * handle,
     34 					semanage_fcontext_t *** records,
     35 					unsigned int *count);
     36 
     37 #endif
     38