From: handa Date: Mon, 3 Sep 2007 00:35:36 +0000 (+0000) Subject: (mdatabase__props): New function. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=58f2e5d8b346c9dd15332ebae290eb63e1f8efaf;p=m17n%2Fm17n-lib.git (mdatabase__props): New function. --- diff --git a/src/database.c b/src/database.c index 50dfbe1..0dabfc1 100644 --- a/src/database.c +++ b/src/database.c @@ -1284,6 +1284,17 @@ mdatabase__unlock (MDatabase *mdb) return 0; } +MPlist * +mdatabase__props (MDatabase *mdb) +{ + MDatabaseInfo *db_info; + + if (mdb->loader != load_database) + return NULL; + db_info = mdb->extra_info; + return db_info->properties; +} + /*** @} */ #endif /* !FOR_DOXYGEN || DOXYGEN_INTERNAL_MODULE */