projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug in {en,de}coder for OtherInformation.
[yaz-moved-to-github.git]
/
include
/
prt-ext.h
diff --git
a/include/prt-ext.h
b/include/prt-ext.h
index
9e1f48f
..
5038d42
100644
(file)
--- a/
include/prt-ext.h
+++ b/
include/prt-ext.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 1995, Index Data.
+ * Copyright (c) 1995-1998, Index Data.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation, in whole or in part, for any purpose, is hereby granted,
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation, in whole or in part, for any purpose, is hereby granted,
@@
-33,6
+33,23
@@
#define PRT_EXT_H
#include <yconfig.h>
#define PRT_EXT_H
#include <yconfig.h>
+#include <oid.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * 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
{
struct Z_External
{
@@
-55,6
+72,12
@@
struct Z_External
#define Z_External_itemOrder 10
#define Z_External_diag1 11
#define Z_External_espec1 12
#define Z_External_itemOrder 10
#define Z_External_diag1 11
#define Z_External_espec1 12
+#define Z_External_summary 13
+#define Z_External_OPAC 14
+#define Z_External_searchResult1 15
+#define Z_External_update 16
+#define Z_External_dateTime 17
+#define Z_External_universeReport 18
union
{
/* Generic types */
union
{
/* Generic types */
@@
-73,9
+96,19
@@
struct Z_External
Z_ItemOrder *itemOrder;
Z_DiagnosticFormat *diag1;
Z_Espec1 *espec1;
Z_ItemOrder *itemOrder;
Z_DiagnosticFormat *diag1;
Z_Espec1 *espec1;
+ Z_BriefBib *summary;
+ Z_SearchInfoReport *searchResult1;
+ Z_IUUpdate *update;
+ Z_DateTime *dateTime;
+ Z_UniverseReport *universeReport;
} u;
};
} u;
};
-int z_External(ODR o, Z_External **p, int opt);
+YAZ_EXPORT int z_External(ODR o, Z_External **p, int opt, const char *name);
+YAZ_EXPORT Z_ext_typeent *z_ext_getentbyref(oid_value val);
+
+#ifdef __cplusplus
+}
+#endif
#endif
#endif