X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fprt-ext.h;h=25ffa4245fe5a0905f06a664ec9350f81b30bfe6;hb=a4b3ddd8ad754b42454c7a18fdb3ef61f7bd580d;hp=9e1f48f0da515fc9080f2803301e0eee8c8af110;hpb=4ae699c927bc26f3550d1a8ca911e8d1fe75dbfc;p=yaz-moved-to-github.git diff --git a/include/prt-ext.h b/include/prt-ext.h index 9e1f48f..25ffa42 100644 --- a/include/prt-ext.h +++ b/include/prt-ext.h @@ -34,6 +34,18 @@ #include +/* + * Used to keep track of known External definitions (a loose approach + * to DEFINED_BY). + */ + +typedef struct Z_ext_typeent +{ + oid_value dref; /* the direct-reference OID value. */ + int what; /* discriminator value for the external CHOICE */ + Odr_fun fun; /* decoder function */ +} Z_ext_typeent; + struct Z_External { Odr_oid *direct_reference; @@ -77,5 +89,6 @@ struct Z_External }; int z_External(ODR o, Z_External **p, int opt); +Z_ext_typeent *z_ext_getentbyref(oid_value val); #endif