Function
GimpParasitenew
Declaration [src]
GimpParasite*
gimp_parasite_new (
const gchar* name,
guint32 flags,
guint32 size,
gconstpointer data
)
Description [src]
Creates a new parasite and save data which may be a proper text (in
which case you may want to set size as strlen(data) + 1) or not.
Parameters
name-
Type:
const gchar*The new
GimpParasitename.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. flags-
Type:
guint32See libgimpbase/gimpparasite.h macros.
size-
Type:
guint32The size of
data, including a terminalNULLbyte if needed. data-
Type: An array of
charThe data to save in a parasite.
The length of the array is specified in the sizeargument.
Return value
Type: GimpParasite
A new GimpParasite.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |