ipa.h File Reference
Detailed Description
libipa public API.
Go to the source code of this file.
Data Structures | |
| struct | _IPAContext |
| IPA Context data structure. More... | |
Typedefs | |
| typedef enum _IPAStatus | IPAStatus |
| The following error return values are defined for IPA:. | |
| typedef enum _IPACatalogType | IPACatalogType |
| IPA catalogs hold one of the following types of data. | |
| typedef _IPAContext | IPAContext |
| IPA Context data structure. | |
Enumerations | |
| enum | _IPAStatus { IPA_OK = 0, IPA_ERR_NOTFOUND, IPA_ERR_FILEIO, IPA_ERR_SQL, IPA_ERR_INVALID, IPA_ERR_UNKNOWN } |
| The following error return values are defined for IPA:. More... | |
| enum | _IPACatalogType { IPA_CAT_NONE = 0, IPA_CAT_SET, IPA_CAT_BAG, IPA_CAT_PMAP } |
| IPA catalogs hold one of the following types of data. More... | |
Functions | |
| int | ipa_create_context (IPAContext **ipa, char *db_uri) |
| Create a handle to an IPA data store. | |
| int | ipa_add_dataset (IPAContext *ipa, const char *catname, const char *catdesc, IPACatalogType type, uint32_t begin, uint32_t end) |
| Add a new IPA dataset to the database. | |
| void | ipa_begin (IPAContext *ipa) |
| Begin an IPA transaction. | |
| void | ipa_commit (IPAContext *ipa) |
| Commit (complete) an IPA transaction. | |
| void | ipa_rollback (IPAContext *ipa) |
| Rollback (abort) an IPA transaction. | |
| int | ipa_get_dataset (IPAContext *ipa, const char *catname, uint32_t time) |
| Retrieve a dataset record. | |
| int | ipa_add_range (IPAContext *ipa, uint32_t addr1, uint32_t addr2, uint64_t value) |
| Add an IP address range to a dataset. | |
| int | ipa_add_cidr (IPAContext *ipa, uint32_t addr, uint32_t prefix, uint64_t value) |
| Convenience function for adding CIDRized IP ranges. | |
| int | ipa_get_range (IPAContext *ipa, char **range, char **range_value) |
| Retrieve the next range in an open dataset. | |
| int | ipa_add_label (IPAContext *ipa, const char *label_name, uint64_t label_num) |
| Add a new label to a prefix map dataset. | |


