Get a List of Entities

Once the database is open, retrieve all the entities that are of interest to you.

First get the list of all entities:

udbListEntity( &allEnts, &allEntsSize);  

Then filter the list to include only what you are interested in. In this example, the list is filtered to include only functions:

udbListEntityFilter (allEnts, 
                     udbKindParse("function"), 
                     &funcEnts, 
                     &funcEntsSize); 

When done with the entity lists, be sure to free them:

udbListEntityFree(allEnts); 
udbListEntityFree(funcEnts); 

Scientific Toolworks, Inc.
http://www.scitools.com