From 382cb7f73dde0e2955fd91b36311af2a87d648d0 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Tue, 9 Jan 2007 11:30:44 +0000 Subject: Added desc and p_desc fields to descriptor definitions --- xtract/libxtract.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'xtract') diff --git a/xtract/libxtract.h b/xtract/libxtract.h index 6f1c08f..c1bead7 100644 --- a/xtract/libxtract.h +++ b/xtract/libxtract.h @@ -133,7 +133,7 @@ enum return_codes_ { typedef enum type_ { FLOAT, INT, - MEL_FILTER, + MEL_FILTER } t_type; /** \brief Enumeration of units*/ @@ -163,8 +163,9 @@ typedef struct _function_descriptor { struct { char name[MAX_NAME_LENGTH]; - char pretty_name[MAX_NAME_LENGTH]; - char description[MAX_DESC_LENGTH]; + char p_name[MAX_NAME_LENGTH]; /* pretty name */ + char desc[MAX_DESC_LENGTH]; + char p_desc[MAX_DESC_LENGTH]; /* pretty description */ char author[MAX_AUTHOR_LENGTH]; int year; } algo; @@ -174,14 +175,15 @@ typedef struct _function_descriptor { t_unit unit; } data; - int n_args; + int argc; struct { - t_type type; + t_type type; /* type of the array/value pointed to by argv */ float min[MAXARGS]; float max[MAXARGS]; - float def[MAXARGS]; + float def[MAXARGS]; /* defaults */ t_unit unit[MAXARGS]; + char donor[MAXARGS]; /* suggested donor functions for argv */ } argv; t_bool is_scalar; -- cgit v1.2.3