ARPA2 Common Libraries
2.6.2
|
Functions | |
bool | rules_dbrollback (struct rules_db *ruledb) |
Rollback recent writes to the ACL database. | |
bool | rules_dbcommit (struct rules_db *ruledb) |
Commit recent changes to the ACL database. | |
bool | rules_dbsuspend (struct rules_db *ruledb) |
Suspend reading from the ACL database. | |
bool | rules_dbresume (struct rules_db *ruledb) |
Resume reading from the ACL databaes. | |
bool | rules_dbopen (struct rules_db *ruledb, bool rdonly, uint32_t trunk) |
Open the ACL database, possibly for bulk updates. More... | |
static bool | rules_dbopen_rdonly (struct rules_db *ruledb) |
Open the ACL database for reading. More... | |
bool | rules_dbclose (struct rules_db *ruledb) |
Close the ACL database. | |
bool rules_dbopen | ( | struct rules_db * | ruledb, |
bool | rdonly, | ||
uint32_t | trunk | ||
) |
Open the ACL database, possibly for bulk updates.
Set rdonly to false
to enable write access. This implies more rigid locking strategies, so any such actions should be short-lived.
Set the trunk to look at a specific value, or use RULES_TRUNK_ANY for accessing any trunk identity.
The ruledb parameter should be zeroed before first use. After rules_dbclose() it may be reused for another round of rules_dbopen() without first zeroing content.
|
inlinestatic |
Open the ACL database for reading.
The ruledb parameter should be zeroed before first use. After rules_dbclose() it may be reused for another round of rules_dbopen() without first zeroing content.