24#ifndef RT_DB_INSTANCE_H
25#define RT_DB_INSTANCE_H
138#define DBI_NULL ((struct db_i *)0)
139#define RT_CHECK_DBI(_p) BU_CKMAG(_p, DBI_MAGIC, "struct db_i")
140#define RT_CK_DBI(_p) RT_CHECK_DBI(_p)
Header file for the BRL-CAD common definitions.
int db_rm_update_nref_clbk(struct db_i *dbip, dbi_update_nref_t c, void *u_data)
int db_add_changed_clbk(struct db_i *dbip, dbi_changed_t c, void *u_data)
void(* dbi_changed_t)(struct db_i *, struct directory *, int, void *)
void(* dbi_update_nref_t)(struct db_i *, struct directory *, struct directory *, const char *, db_op_t, matp_t, void *)
int db_rm_changed_clbk(struct db_i *dbip, dbi_changed_t c, void *u_data)
int db_add_update_nref_clbk(struct db_i *dbip, dbi_update_nref_t c, void *u_data)
#define RT_DBNHASH
hash table is an array of linked lists with this many array pointer elements (Memory use for 32-bit: ...
fastf_t * matp_t
pointer to a 4x4 matrix
Global registry of recognized magic numbers.
b_off_t dbi_eof
PRIVATE: End+1 pos after db_scan()
size_t dbi_nrec
PRIVATE: # records after db_scan()
double dbi_base2local
unit conversion factors
void * dbi_inmem
PRIVATE: ptr to in-memory copy.
FILE * dbi_fp
PRIVATE: object hash table.
int dbi_uses
PRIVATE: # of uses of this struct.
char ** dbi_filepath
search path for aux file opens (convenience var)
struct mem_map * dbi_freep
PRIVATE: map of free granules.
struct rt_wdb * dbi_wdbp_a
PRIVATE: disk append-only rt_wdb.
double dbi_local2base
local2mm
struct rt_wdb * dbi_wdbp_inmem
PRIVATE: inmem rt_wdb.
struct animate * dbi_anroot
PRIVATE: heads list of anim at root lvl.
struct bu_mapped_file * dbi_mf
PRIVATE: Only in read-only mode.
int dbi_read_only
!0 => read only file
int dbi_version
PRIVATE: use db_version()
char * dbi_filename
file name
int dbi_use_comb_instance_ids
PRIVATE: flag to enable/disable comb instance tracking in full paths.
struct bu_ptbl dbi_changed_clbks
PRIVATE: dbi_changed_t callbacks registered with dbi.
struct bu_ptbl dbi_update_nref_clbks
PRIVATE: dbi_update_nref_t callbacks registered with dbi.
struct directory * dbi_Head[RT_DBNHASH]
struct rt_wdb * dbi_wdbp
PRIVATE: disk rt_wdb.
struct rt_wdb * dbi_wdbp_inmem_a
PRIVATE: inmem append-only rt_wdb.
uint32_t dbi_magic
magic number
struct bu_ptbl dbi_clients
PRIVATE: List of rtip's using this db_i.
char * dbi_title
title from IDENT rec