attr->value_tag = IPP_TAG_BEGIN_COLLECTION;
attr->values[0].collection = value;
+ value->use ++;
+
return (attr);
}
attr->value_tag = IPP_TAG_BEGIN_COLLECTION;
if (values != NULL)
+ {
for (i = 0, value = attr->values;
i < num_values;
i ++, value ++)
+ {
value->collection = (ipp_t *)values[i];
+ value->collection->use ++;
+ }
+ }
return (attr);
}
if (!ipp)
return;
+ ipp->use --;
+ if (ipp->use > 0)
+ return;
+
for (attr = ipp->attrs; attr != NULL; attr = next)
{
next = attr->next;
temp->request.any.version[0] = 1;
temp->request.any.version[1] = 1;
+ temp->use = 1;
}
DEBUG_printf(("1ippNew: Returning %p", temp));
int tbytes, /* Total bytes read */
bytes; /* Bytes read this pass */
char len[32]; /* Length string */
-
+
DEBUG_printf(("7ipp_read_http(http=%p, buffer=%p, length=%d)",
http, buffer, (int)length));