tops.c File Reference
#include "common.h"
#include <string.h>
#include "bu/cmd.h"
#include "bu/getopt.h"
#include "./ged_private.h"
Include dependency graph for tops.c:

Go to the source code of this file.


int ged_tops (struct ged *gedp, int argc, const char *argv[])
struct directory ** _ged_dir_getspace (struct db_i *dbip, int num_entries)

Detailed Description

The tops command.

Definition in file tops.c.

Function Documentation

int ged_tops ( struct ged gedp,
int  argc,
const char *  argv[] 

Find all top level objects

Definition at line 37 of file tops.c.

References _ged_dir_getspace(), _ged_vls_col_pr4v(), bu_free(), bu_getopt(), bu_optind, bu_vls_trunc(), directory::d_flags, directory::d_forw, directory::d_nref, db_update_nref(), db_version(), db_i::dbi_Head, rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_ERROR, GED_OK, ged::ged_result_str, ged::ged_wdbp, RT_DBNHASH, RT_DIR_HIDDEN, RT_DIR_NULL, RT_DIR_PHONY_ADDR, and rt_uniresource.

Here is the call graph for this function:

struct directory** _ged_dir_getspace ( struct db_i dbip,
int  num_entries 

Definition at line 140 of file tops.c.

References bu_log(), bu_malloc(), directory::d_forw, db_i::dbi_Head, RT_DBNHASH, and RT_DIR_NULL.

Referenced by ged_tops().

Here is the call graph for this function: