[2e9455f] | 1 | #ifndef __ABAC_TERM_H__ |
---|
| 2 | #define __ABAC_TERM_H__ |
---|
| 3 | |
---|
| 4 | #include "abac_defines.h" |
---|
| 5 | #include "abac_list.h" |
---|
| 6 | |
---|
| 7 | /* exported */ |
---|
| 8 | /* for abac_aspect */ |
---|
| 9 | extern char *abac_term_type_name(abac_term_t*); |
---|
| 10 | extern abac_condition_t *abac_term_constraint(abac_term_t*); |
---|
| 11 | extern abac_param_list_t *abac_param_list_new(abac_term_t *); |
---|
| 12 | extern char* abac_time_to_term(char*); |
---|
| 13 | extern char* abac_param_list_string_with_condition(abac_param_list_t *); |
---|
| 14 | extern char* abac_param_list_typed_string_with_condition(abac_param_list_t *); |
---|
| 15 | extern char* abac_param_list_string(abac_param_list_t *ptr); |
---|
| 16 | extern abac_list_t *abac_condition_range_list(abac_condition_t *ptr); |
---|
| 17 | extern int abac_item_type(abac_item_t *); |
---|
| 18 | extern char *abac_item_val(abac_item_t *); |
---|
| 19 | extern char *abac_term_to_time(char *); |
---|
| 20 | extern abac_aspect_t *abac_condition_of_aspect(abac_condition_t *ptr); |
---|
| 21 | extern abac_list_t *abac_param_list(abac_param_list_t *ptr); |
---|
| 22 | extern abac_term_t *abac_term_named_new(int idtype, char *name); |
---|
| 23 | extern char *abac_term_name(abac_term_t *term); |
---|
| 24 | extern abac_term_t *abac_term_new(int type, char *name, int isrange, char *cond, void *cptr); |
---|
| 25 | extern abac_aspect_t *abac_aspect_oset_new(char *principal_name, char *oset_name); |
---|
| 26 | extern abac_aspect_t *abac_aspect_role_new(char *principal_name, char *oset_name); |
---|
| 27 | extern abac_item_t *abac_item_new(int itype, char *val); |
---|
| 28 | |
---|
| 29 | extern abac_term_t *abac_term_copy(abac_term_t *); |
---|
| 30 | extern abac_param_list_t *abac_param_list_copy(abac_param_list_t *); |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | #endif /* __ABAC_TERM_H__ */ |
---|