|  |  |  | Liboil Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
                    OilPrototype;
OilPrototype *      oil_prototype_from_string           (const char *s);
char *              oil_prototype_to_string             (OilPrototype *proto);
char *              oil_prototype_to_arg_string         (OilPrototype *proto);
void                oil_prototype_free                  (OilPrototype *proto);
void                oil_prototype_append_param          (OilPrototype *proto,
                                                         OilParameter *param);
typedef struct {
  int n_params;
  OilParameter *params;
  OilFunctionClass *klass;
} OilPrototype;
An opaque structure describing the C function prototype of
an OilFunctionClass.
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.
| 
 | a string | 
| Returns : | 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.
| 
 | the OilPrototype | 
| Returns : | a string that should be freed using free()when it is no
longer needed. | 
char * oil_prototype_to_arg_string (OilPrototype *proto);
Converts a prototype into the corresponding C argument list.
| 
 | the OilPrototype | 
| Returns : | a string that should be freed using free()when it is no
longer needed. | 
void oil_prototype_free (OilPrototype *proto);
Frees memory associated with proto.
| 
 | the OilPrototype | 
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.
| 
 | the OilPrototype | 
| 
 | an OilParameter |