next up previous contents index
Next: Code Example : Resource Up: Resource file .graperc Previous: Methods on class ResourceDev

Utility Functions on class ResourceDev

void g_remove_resourcelist(G_LIST *rlist)
Remove all entries of the resource list rlist and the list itself.

void g_resourcelist_print(G_LIST *rlist)
Print all entries of rlist, used for the "help" tags.

int g_resourcelist_find(G_LIST *rlist, G_RESOURCE_DESCR *descr, int *number)
If descr matches on of the entries in rlist the value is copied to the location passed with g_rclist_add.

G_LIST *g_rclist_add(G_LIST *rlist, char *ident, void *valueptr, DECLARATION_FORMAT type)
Add a single value (which valueptr points to) of type type to the resource list, having the identifier ident. If NULL is passed as rlist, a G_List instance is created, which is returned.

void g_resourcedev_not_found(INSTANCE *inst, G_RESOURCE_DESCR *descr)
Print "not found" error message for current resourcedev.

void g_resourcedev_parse(INSTANCE *inst, char *path)
Easy interface for "parse", requiring a method "resource", and an optional method "get-rclist" on the class of inst.



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.