X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=z39.50%2Fz-univ.c;fp=z39.50%2Fz-univ.c;h=0000000000000000000000000000000000000000;hb=fa21652860bfd374c3fa9adee83ad726bffd6dbd;hp=7c3a66e580a8a53febe2356980b47e8d384209b8;hpb=b86dedd714b84b52d7f1bfe71555d08367c2c179;p=yaz-moved-to-github.git diff --git a/z39.50/z-univ.c b/z39.50/z-univ.c deleted file mode 100644 index 7c3a66e..0000000 --- a/z39.50/z-univ.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Generated automatically by the YAZ ASN.1 Compiler 0.3 */ -/* Module-C: ResourceReport-Format-Universe-1 */ - -#include - -int z_UniverseReportHits (ODR o, Z_UniverseReportHits **p, int opt, const char *name) -{ - if (!odr_sequence_begin (o, p, sizeof(**p), name)) - return opt && odr_ok (o); - return - z_StringOrNumeric(o, &(*p)->database, 0, "database") && - z_StringOrNumeric(o, &(*p)->hits, 0, "hits") && - odr_sequence_end (o); -} - -int z_UniverseReportDuplicate (ODR o, Z_UniverseReportDuplicate **p, int opt, const char *name) -{ - if (!odr_sequence_begin (o, p, sizeof(**p), name)) - return opt && odr_ok (o); - return - z_StringOrNumeric(o, &(*p)->hitno, 0, "hitno") && - odr_sequence_end (o); -} - -int z_UniverseReport (ODR o, Z_UniverseReport **p, int opt, const char *name) -{ - static Odr_arm arm[] = { - {ODR_IMPLICIT, ODR_CONTEXT, 0, Z_UniverseReport_databaseHits, - (Odr_fun) z_UniverseReportHits, "databaseHits"}, - {ODR_IMPLICIT, ODR_CONTEXT, 1, Z_UniverseReport_duplicate, - (Odr_fun) z_UniverseReportDuplicate, "duplicate"}, - {-1, -1, -1, -1, (Odr_fun) 0, 0} - }; - if (!odr_sequence_begin (o, p, sizeof(**p), name)) - return opt && odr_ok (o); - return - odr_integer(o, &(*p)->totalHits, 0, "totalHits") && - odr_choice (o, arm, &(*p)->u, &(*p)->which, 0) && - odr_sequence_end (o); -}