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 |
const gchar* |
The new |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
flags |
guint32 |
See libgimpbase/gimpparasite.h macros. |
|
size |
guint32 |
The size of |
|
data |
An array of char |
The data to save in a parasite. |
|
The length of the array is specified in the size argument. |
Return value
Returns: | GimpParasite |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |