liboilprototype.h File Reference

Typedef OilPrototype

typedef typedefOIL_BEGIN_DECLS struct _OilPrototypeOilPrototype

oil_prototype_from_string ( const char * )

IMPORT_C OilPrototype *oil_prototype_from_string(const char *s)

oil_prototype_from_string: : a string

Converts the string containing C prototype that follows Liboil parameter naming rules into a OilPrototype. If the string cannot be converted, NULL is returned.

Returns: the OilPrototype. When it is no longer needed, free the prototype using oil_prototype_free().

oil_prototype_to_string ( OilPrototype * )

IMPORT_C char *oil_prototype_to_string(OilPrototype *proto)

oil_prototype_to_string: : the OilPrototype

Converts a prototype into the corresponding C style declaration.

Returns: a string that should be freed using free() when it is no longer needed.

oil_prototype_to_arg_string ( OilPrototype * )

IMPORT_C char *oil_prototype_to_arg_string(OilPrototype *proto)

oil_prototype_to_arg_string: : the OilPrototype

Converts a prototype into the corresponding C argument list.

Returns: a string that should be freed using free() when it is no longer needed.

oil_prototype_free ( OilPrototype * )

IMPORT_C voidoil_prototype_free(OilPrototype *proto)

oil_prototype_free: : the OilPrototype

Frees memory associated with .

oil_prototype_append_param ( OilPrototype *, OilParameter * )

IMPORT_C voidoil_prototype_append_param(OilPrototype *proto,
OilParameter *param
)

oil_prototype_append_param: : the OilPrototype Appends

oil_type_sizeof ( OilType )

IMPORT_C intoil_type_sizeof(OilTypetype)

oil_type_sizeof: : the OilType

Looks up the size of the OilType represented by .

Returns: the size of

oil_type_name ( OilType )

IMPORT_C const char *oil_type_name(OilTypetype)

oil_type_name: : an OilType

Looks up the name of the OilType given by .

Returns: a string containing the name of the OilType .

oil_arg_type_name ( OilArgType )

IMPORT_C const char *oil_arg_type_name(OilArgTypetype)

oil_arg_type_name: : an OilArgType

Looks up the name of the OilArgType specified by .

Returns: a string containing the name