Created util file.
[yaz-moved-to-github.git] / include / prt-ext.h
index 9e1f48f..25ffa42 100644 (file)
 
 #include <yconfig.h>
 
+/*
+ * 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