Lines Matching defs:entry
62 * Purpose: create a policy entry in the policy db.
65 * entry (input) pointer to the entry to be added
69 * entry have a valid name.
72 * creates the entry in the db
79 osa_adb_create_policy(osa_adb_policy_t db, osa_policy_ent_t entry)
88 if(entry->name == NULL) {
92 dbkey.data = entry->name;
93 dbkey.size = (strlen(entry->name) + 1);
106 if(!xdr_osa_policy_ent_rec(&xdrs, entry)) {
136 * Purpose: destroy a policy entry
198 * entry (output) policy entry
208 osa_policy_ent_t *entry, int *cnt)
239 if (!(*(entry) = (osa_policy_ent_t)malloc(sizeof(osa_policy_ent_rec)))) {
248 memset(*entry, 0, sizeof(osa_policy_ent_rec));
250 if (!xdr_osa_policy_ent_rec(&xdrs, *entry))
268 * entry (input) policy entry
282 osa_adb_put_policy(osa_adb_policy_t db, osa_policy_ent_t entry)
292 if(entry->name == NULL) {
296 dbkey.data = entry->name;
297 dbkey.size = (strlen(entry->name) + 1);
309 if(!xdr_osa_policy_ent_rec(&xdrs, entry)) {
356 osa_policy_ent_t entry;
367 if (!(entry = (osa_policy_ent_t) malloc(sizeof(osa_policy_ent_rec)))) {
378 memset(entry, 0, sizeof(osa_policy_ent_rec));
380 if(!xdr_osa_policy_ent_rec(&xdrs, entry)) {
386 (*func)(data, entry);
389 osa_free_policy_ent(entry);