1 #ifndef _SEMANAGE_IBENDPORT_INTERNAL_H_
2 #define _SEMANAGE_IBENDPORT_INTERNAL_H_
3 
4 #include <semanage/ibendport_record.h>
5 #include <semanage/ibendports_local.h>
6 #include <semanage/ibendports_policy.h>
7 #include "database.h"
8 #include "handle.h"
9 #include "dso.h"
10 
11 hidden_proto(semanage_ibendport_create)
12 hidden_proto(semanage_ibendport_compare)
13 hidden_proto(semanage_ibendport_compare2)
14 hidden_proto(semanage_ibendport_clone)
15 hidden_proto(semanage_ibendport_free)
16 hidden_proto(semanage_ibendport_key_extract)
17 hidden_proto(semanage_ibendport_key_free)
18 hidden_proto(semanage_ibendport_get_port)
19 hidden_proto(semanage_ibendport_set_port)
20 hidden_proto(semanage_ibendport_get_con)
21 hidden_proto(semanage_ibendport_set_con)
22 hidden_proto(semanage_ibendport_list_local)
23 hidden_proto(semanage_ibendport_get_ibdev_name)
24 hidden_proto(semanage_ibendport_set_ibdev_name)
25 
26 /* IBENDPORT RECORD: method table */
27 extern record_table_t SEMANAGE_IBENDPORT_RTABLE;
28 
29 extern int ibendport_file_dbase_init(semanage_handle_t *handle,
30 				     const char *path_ro,
31 				     const char *path_rw,
32 				     dbase_config_t *dconfig);
33 
34 extern void ibendport_file_dbase_release(dbase_config_t *dconfig);
35 
36 extern int ibendport_policydb_dbase_init(semanage_handle_t *handle,
37 					 dbase_config_t *dconfig);
38 
39 extern void ibendport_policydb_dbase_release(dbase_config_t *dconfig);
40 
41 extern int hidden semanage_ibendport_validate_local(semanage_handle_t *handle);
42 
43 /* ==== Internal (to ibendports) API === */
44 
45 hidden int semanage_ibendport_compare2_qsort(const semanage_ibendport_t **ibendport,
46 					     const semanage_ibendport_t **ibendport2);
47 
48 #endif
49