From: Adam Dickmeiss Date: Mon, 7 May 2007 12:06:09 +0000 (+0000) Subject: Functions yaz_oid_db_{new,destroy} in public header X-Git-Tag: YAZ.3.0.2~5 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=38629f9fd1b8802c986dcc32ee85d83b2760cd06;p=yaz-moved-to-github.git Functions yaz_oid_db_{new,destroy} in public header --- diff --git a/include/yaz/oid_db.h b/include/yaz/oid_db.h index 73e765a..1fe57d9 100644 --- a/include/yaz/oid_db.h +++ b/include/yaz/oid_db.h @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: oid_db.h,v 1.6 2007-05-06 20:12:20 adam Exp $ */ +/* $Id: oid_db.h,v 1.7 2007-05-07 12:06:09 adam Exp $ */ /** * \file oid_db.h @@ -136,6 +136,19 @@ YAZ_EXPORT int yaz_oid_add(yaz_oid_db_t oid_db, int oclass, const char *name, const int *new_oid); + +/** \brief creates empty OID database + \returns database +*/ +YAZ_EXPORT +yaz_oid_db_t yaz_oid_db_new(void); + +/** \brief destroys OID database + \param oid_db database +*/ +YAZ_EXPORT +void yaz_oid_db_destroy(yaz_oid_db_t oid_db); + struct yaz_oid_entry { int oclass; const int *oid;