mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-02-26 22:02:43 +08:00
Remaining gmdb2 info data from properties
New method mdb_get_catalogentry_by_name() Bumped libmdb version from 2.0.1 to 2.1.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
lib_LTLIBRARIES = libmdb.la
|
||||
libmdb_la_SOURCES= catalog.c mem.c file.c table.c data.c dump.c backend.c money.c sargs.c index.c like.c write.c stats.c map.c props.c worktable.c options.c iconv.c
|
||||
libmdb_la_LDFLAGS = -version-info 2:0:1 -Wl,--version-script=$(srcdir)/libmdb.map
|
||||
libmdb_la_LDFLAGS = -version-info 2:1:0 -Wl,--version-script=$(srcdir)/libmdb.map
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS)
|
||||
LIBS = $(GLIB_LIBS) @LIBS@
|
||||
|
||||
@@ -128,6 +128,21 @@ GPtrArray *mdb_read_catalog (MdbHandle *mdb, int objtype)
|
||||
return mdb->catalog;
|
||||
}
|
||||
|
||||
|
||||
MdbCatalogEntry *
|
||||
mdb_get_catalogentry_by_name(MdbHandle *mdb, const gchar* name)
|
||||
{
|
||||
unsigned int i;
|
||||
MdbCatalogEntry *entry;
|
||||
|
||||
for (i=0; i<mdb->num_catalog; i++) {
|
||||
entry = g_ptr_array_index(mdb->catalog, i);
|
||||
if (!strcasecmp(entry->object_name, name))
|
||||
return entry;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
mdb_dump_catalog(MdbHandle *mdb, int obj_type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user