Lines Matching defs:item

2518 dns_message_gettempname(dns_message_t *msg, dns_name_t **item) {
2520 REQUIRE(item != NULL && *item == NULL);
2522 *item = isc_mempool_get(msg->namepool);
2523 if (*item == NULL)
2525 dns_name_init(*item, NULL);
2531 dns_message_gettempoffsets(dns_message_t *msg, dns_offsets_t **item) {
2533 REQUIRE(item != NULL && *item == NULL);
2535 *item = newoffsets(msg);
2536 if (*item == NULL)
2543 dns_message_gettemprdata(dns_message_t *msg, dns_rdata_t **item) {
2545 REQUIRE(item != NULL && *item == NULL);
2547 *item = newrdata(msg);
2548 if (*item == NULL)
2555 dns_message_gettemprdataset(dns_message_t *msg, dns_rdataset_t **item) {
2557 REQUIRE(item != NULL && *item == NULL);
2559 *item = isc_mempool_get(msg->rdspool);
2560 if (*item == NULL)
2563 dns_rdataset_init(*item);
2569 dns_message_gettemprdatalist(dns_message_t *msg, dns_rdatalist_t **item) {
2571 REQUIRE(item != NULL && *item == NULL);
2573 *item = newrdatalist(msg);
2574 if (*item == NULL)
2581 dns_message_puttempname(dns_message_t *msg, dns_name_t **item) {
2583 REQUIRE(item != NULL && *item != NULL);
2585 if (dns_name_dynamic(*item))
2586 dns_name_free(*item, msg->mctx);
2587 isc_mempool_put(msg->namepool, *item);
2588 *item = NULL;
2592 dns_message_puttemprdata(dns_message_t *msg, dns_rdata_t **item) {
2594 REQUIRE(item != NULL && *item != NULL);
2596 releaserdata(msg, *item);
2597 *item = NULL;
2601 dns_message_puttemprdataset(dns_message_t *msg, dns_rdataset_t **item) {
2603 REQUIRE(item != NULL && *item != NULL);
2605 REQUIRE(!dns_rdataset_isassociated(*item));
2606 isc_mempool_put(msg->rdspool, *item);
2607 *item = NULL;
2611 dns_message_puttemprdatalist(dns_message_t *msg, dns_rdatalist_t **item) {
2613 REQUIRE(item != NULL && *item != NULL);
2615 releaserdatalist(msg, *item);
2616 *item = NULL;