| Top |
| OilPrototype * | oil_prototype_from_string () |
| char * | oil_prototype_to_string () |
| char * | oil_prototype_to_arg_string () |
| void | oil_prototype_free () |
| void | oil_prototype_append_param () |
OilPrototype *
oil_prototype_from_string (const char *s);
Converts the string s
containing C prototype that follows
Liboil parameter naming rules into a OilPrototype. If the
string cannot be converted, NULL is returned.
the OilPrototype. When it is no longer needed, free
the prototype using oil_prototype_free().
char *
oil_prototype_to_string (OilPrototype *proto);
Converts a prototype into the corresponding C style declaration.
char *
oil_prototype_to_arg_string (OilPrototype *proto);
Converts a prototype into the corresponding C argument list.
void
oil_prototype_free (OilPrototype *proto);
Frees memory associated with proto
.
void oil_prototype_append_param (OilPrototype *proto,OilParameter *param);
Appends param
to the list of parameters contained in proto
. The
contents of param
are copied.