• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2017 Mellanox Technolgies Inc. */
2 
3 #ifndef _SEMANAGE_IBPKEYS_POLICY_H_
4 #define _SEMANAGE_IBPKEYS_POLICY_H_
5 
6 #include <semanage/handle.h>
7 #include <semanage/ibpkey_record.h>
8 
9 extern int semanage_ibpkey_query(semanage_handle_t *handle,
10 				 const semanage_ibpkey_key_t *key,
11 				 semanage_ibpkey_t **response);
12 
13 extern int semanage_ibpkey_exists(semanage_handle_t *handle,
14 				  const semanage_ibpkey_key_t *key, int *response);
15 
16 extern int semanage_ibpkey_count(semanage_handle_t *handle,
17 				 unsigned int *response);
18 
19 extern int semanage_ibpkey_iterate(semanage_handle_t *handle,
20 				   int (*handler)(const semanage_ibpkey_t *record,
21 						  void *varg),
22 				   void *handler_arg);
23 
24 extern int semanage_ibpkey_list(semanage_handle_t *handle,
25 				semanage_ibpkey_t ***records,
26 				unsigned int *count);
27 
28 #endif
29