C API Functions |
Filter the specified list of references, using the reference kinds and/or the entity kinds specified, and return a new allocated array of references. If unique is specified, the newrefs array will only contain the first reference for each unique entity.
Call udbListReferenceFree() to free this list.
#include "udb/udb.h" void udbListReferenceFilter(UdbReference *refs, UdbKindList refkinds, UdbKindList entkinds, int unique, UdbReference **newrefs, int *items)
There are no function return values.
This example filters an existing list of reference to include only those references where there is an active callby or useby reference, or where the entity is declared or defined.
udbListReferenceFilter(refs, udbKindParse("callby ~inactive,declarein,definein, useby ~inactive"), NULL, 0, &xrefs, &items);
udbListReference to get list of references for a specified entity.
udbListReferenceFree to free the list of references.
Scientific Toolworks, Inc. http://www.scitools.com Voice: (802) 763-2995 Fax: (802) 763-3066 support@scitools.com sales@scitools.com |