﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
114	Questions/Comments for psMetadataItemAlloc() Function (Section 5.2.2 SDRS)	calvin.harman@…	eugene	"I would like to change the argument list to the psMetadataItemAlloc() function 
as follows:

1) Rename the first argument to fmt, since it represents the formatting for the 
metadata item name. We use the fmt argument in a similar fashion for psAbort 
and psError.

2) Replace the second argument, format, with two arguments - type and flags. I 
didn't think users should have to know to perform a binary OR if it's easier to 
add an extra argument. Also, passing the non ORed type and flags seemed more 
consistent with other allocators like psVector, psScalar, and psImage that also 
pass in type.

3) For the variable argument list section of the argument list, I'd like to 
have the metadata item data value come before the formatting arguments. It's 
more difficult to pull the metadata item value off the very the end of the 
variable argument list than it is at the beginning.

Here's what the new prototype would look like:

psMetadataItem *psMetadataItemAlloc(const char *fmt, psMetadataType type, 
psMetadataFlags, flags, const char* comment, ...);"	defect	closed	high		IPP SDRS	unspecified	normal	fixed		
