Lines Matching refs:entry
58 * Purpose: create a policy entry in the policy db.
61 * entry (input) pointer to the entry to be added
65 * entry have a valid name.
68 * creates the entry in the db
75 osa_adb_create_policy(osa_adb_policy_t db, osa_policy_ent_t entry)
84 if(entry->name == NULL) {
88 dbkey.data = entry->name;
89 dbkey.size = (strlen(entry->name) + 1);
102 if(!xdr_osa_policy_ent_rec(&xdrs, entry)) {
132 * Purpose: destroy a policy entry
194 * entry (output) policy entry
204 osa_policy_ent_t *entry, int *cnt)
235 if (!(*(entry) = (osa_policy_ent_t)malloc(sizeof(osa_policy_ent_rec)))) {
244 memset(*entry, 0, sizeof(osa_policy_ent_rec));
246 if (!xdr_osa_policy_ent_rec(&xdrs, *entry))
264 * entry (input) policy entry
278 osa_adb_put_policy(osa_adb_policy_t db, osa_policy_ent_t entry)
288 if(entry->name == NULL) {
292 dbkey.data = entry->name;
293 dbkey.size = (strlen(entry->name) + 1);
305 if(!xdr_osa_policy_ent_rec(&xdrs, entry)) {
352 osa_policy_ent_t entry;
363 if (!(entry = (osa_policy_ent_t) malloc(sizeof(osa_policy_ent_rec)))) {
371 free(entry);
376 memset(entry, 0, sizeof(osa_policy_ent_rec));
378 if(!xdr_osa_policy_ent_rec(&xdrs, entry)) {
381 osa_free_policy_ent(entry);
385 (*func)(data, entry);
388 osa_free_policy_ent(entry);