148 void (*func)(
const Odr_oid *oid,
194 #define Z3950_PREFIX 1, 2, 840, 10003
Header for ODR (Open Data Representation)
char * oid_name_to_dotstring(oid_class oclass, const char *name, char *oid_buf)
maps named from standard database to dot notation
int yaz_oid_is_iso2709(const Odr_oid *oid)
checks if OID refers to MARC transfer syntax
Odr_oid * yaz_string_to_oid_odr(yaz_oid_db_t oid_db, oid_class oclass, const char *name, ODR odr)
creates ODR malloc'ed OID from string
void yaz_oid_trav(yaz_oid_db_t oid_db, void(*func)(const Odr_oid *oid, oid_class oclass, const char *name, void *client_data), void *client_data)
traverses OIDs in a database
const char * yaz_oid_to_string_buf(const Odr_oid *oid, oid_class *oclass, char *buf)
maps any OID to string (named or dot-notation)
yaz_oid_db_t yaz_oid_std(void)
returns standard OID database
void yaz_oid_db_destroy(yaz_oid_db_t oid_db)
destroys OID database
struct yaz_oid_db * yaz_oid_db_t
OID database.
Odr_oid * yaz_string_to_oid_nmem(yaz_oid_db_t oid_db, oid_class oclass, const char *name, NMEM nmem)
creates NMEM malloc'ed OID from string
const Odr_oid * yaz_string_to_oid(yaz_oid_db_t oid_db, oid_class oclass, const char *name)
maps named OID string to raw OID by database lookup
const char * yaz_oid_to_string(yaz_oid_db_t oid_db, const Odr_oid *oid, oid_class *oclass)
maps raw OID to string
yaz_oid_db_t yaz_oid_db_new(void)
creates empty OID database
int yaz_oid_add(yaz_oid_db_t oid_db, oid_class oclass, const char *name, const Odr_oid *new_oid)
adds new OID entry to database
Standard Object Identifiers: Generated from ./oid.csv.
Header for OID basic functions.
Header with fundamental macros.