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
Make yaz_use_attribute_create a public function
[yaz-moved-to-github.git]
/
include
/
yaz
/
facet.h
diff --git
a/include/yaz/facet.h
b/include/yaz/facet.h
index
d51b2ef
..
6ce1744
100644
(file)
--- a/
include/yaz/facet.h
+++ b/
include/yaz/facet.h
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data.
+ * Copyright (C) Index Data.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@
-57,8
+57,9
@@
struct yaz_facet_attr {
/* or number converted to a string */
/* defaults to 'any' */
char useattrbuff[30]; /* for converting numbers to strings */
/* or number converted to a string */
/* defaults to 'any' */
char useattrbuff[30]; /* for converting numbers to strings */
- char *relation; /* @attr 2, defaults to '=' */
- int limit; /* for facet attributes */
+ int sortorder;
+ int limit;
+ int start;
};
YAZ_EXPORT
};
YAZ_EXPORT
@@
-69,10
+70,7
@@
void yaz_facet_attr_get_z_attributes(const Z_AttributeList *attributes,
struct yaz_facet_attr *av);
YAZ_EXPORT
struct yaz_facet_attr *av);
YAZ_EXPORT
-Z_Term *term_create(ODR odr, const char *cstr);
-
-YAZ_EXPORT
-Z_FacetTerm* facet_term_create(ODR odr, Z_Term *term, int freq);
+Z_FacetTerm *facet_term_create_cstr(ODR odr, const char *cstr, Odr_int freq);
YAZ_EXPORT
Z_FacetField* facet_field_create(ODR odr, Z_AttributeList *attributes,
YAZ_EXPORT
Z_FacetField* facet_field_create(ODR odr, Z_AttributeList *attributes,
@@
-95,6
+93,11
@@
void yaz_oi_set_facetlist(
YAZ_EXPORT
Z_FacetList *yaz_oi_get_facetlist(Z_OtherInformation **otherInformation);
YAZ_EXPORT
Z_FacetList *yaz_oi_get_facetlist(Z_OtherInformation **otherInformation);
+YAZ_EXPORT
+void yaz_oi_set_facetlist(Z_OtherInformation **otherInformation, ODR odr,
+ Z_FacetList *facet_list);
+
+
YAZ_END_CDECL
#endif
YAZ_END_CDECL
#endif