const GList * anjuta_pm_project_get_node_info (AnjutaPmProject *project) { g_return_val_if_fail (project->project != NULL, NULL); return ianjuta_project_get_node_info (project->project, NULL); }
static AnjutaProjectNodeType get_target_type (IAnjutaProject *project, const char *id) { AnjutaProjectNodeType type; const GList *list; const GList *item; gint best = G_MAXINT; list = ianjuta_project_get_node_info (project, NULL); type = 0; for (item = list; item != NULL; item = g_list_next (item)) { AnjutaProjectNodeInfo *info = (AnjutaProjectNodeInfo *)item->data; if ((info->type & ANJUTA_PROJECT_TYPE_MASK) == ANJUTA_PROJECT_TARGET) { gint miss; miss = compare_name (id, info->name); if ((miss >= 0) && (miss < best)) { best = miss; type = info->type; } } } return type; }