| 40 |
|
char *hrem; /* header remarks */ |
| 41 |
|
IDF_PARAMETER *pfirst; /* first parameter in file */ |
| 42 |
|
IDF_PARAMETER *plast; /* last parameter loaded */ |
| 43 |
< |
LUTAB ptab; /* parameter table */ |
| 43 |
> |
LUTAB ptab; /* parameter hash table */ |
| 44 |
|
} IDF_LOADED; |
| 45 |
|
|
| 46 |
< |
/* Create a new parameter with empty field list (comment optional) */ |
| 46 |
> |
/* Create a new parameter with empty field list (comment & prev optional) */ |
| 47 |
|
extern IDF_PARAMETER *idf_newparam(IDF_LOADED *idf, const char *pname, |
| 48 |
< |
const char *comm, |
| 49 |
< |
IDF_PARAMETER *prev); |
| 48 |
> |
const char *comm, IDF_PARAMETER *prev); |
| 49 |
|
|
| 50 |
|
/* Add a field to the given parameter and follow with the given text */ |
| 51 |
|
extern int idf_addfield(IDF_PARAMETER *param, const char *fval, |
| 52 |
|
const char *comm); |
| 53 |
+ |
|
| 54 |
+ |
/* Retrieve the indexed field from parameter (first field index is 1) */ |
| 55 |
+ |
extern IDF_FIELD *idf_getfield(IDF_PARAMETER *param, int fn); |
| 56 |
|
|
| 57 |
|
/* Delete the specified parameter from our IDF */ |
| 58 |
|
extern int idf_delparam(IDF_LOADED *idf, IDF_PARAMETER *param); |