Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.100.65
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
include /
yaz /
[ HOME SHELL ]
Name
Size
Permission
Action
backend.h
15.2
KB
-rw-r--r--
backtrace.h
2.08
KB
-rw-r--r--
base64.h
2.39
KB
-rw-r--r--
ccl.h
11.26
KB
-rw-r--r--
ccl_xml.h
2.73
KB
-rw-r--r--
charneg.h
3.73
KB
-rw-r--r--
comstack.h
7.06
KB
-rw-r--r--
cookie.h
2.27
KB
-rw-r--r--
copy_types.h
3.01
KB
-rw-r--r--
cql.h
14.82
KB
-rw-r--r--
daemon.h
3.53
KB
-rw-r--r--
diagbib1.h
10.14
KB
-rw-r--r--
diagsru_update.h
3.66
KB
-rw-r--r--
diagsrw.h
4.87
KB
-rw-r--r--
dirent.h
2.18
KB
-rw-r--r--
errno.h
2.24
KB
-rw-r--r--
facet.h
3.63
KB
-rw-r--r--
file_glob.h
3.16
KB
-rw-r--r--
gettimeofday.h
2.08
KB
-rw-r--r--
icu.h
7.56
KB
-rw-r--r--
ill-core.h
46.03
KB
-rw-r--r--
ill.h
2.43
KB
-rw-r--r--
item-req.h
1.87
KB
-rw-r--r--
json.h
6.66
KB
-rw-r--r--
log.h
8.4
KB
-rw-r--r--
logrpn.h
2.44
KB
-rw-r--r--
marcdisp.h
16.52
KB
-rw-r--r--
match_glob.h
2.2
KB
-rw-r--r--
matchstr.h
3.59
KB
-rw-r--r--
mutex.h
4.36
KB
-rw-r--r--
nmem.h
7.42
KB
-rw-r--r--
nmem_xml.h
2.08
KB
-rw-r--r--
oclc-ill-req-ext.h
1.63
KB
-rw-r--r--
odr.h
11.81
KB
-rw-r--r--
oid_db.h
6.25
KB
-rw-r--r--
oid_std.h
8.62
KB
-rw-r--r--
oid_util.h
3.23
KB
-rw-r--r--
options.h
3.11
KB
-rw-r--r--
otherinfo.h
2.42
KB
-rw-r--r--
poll.h
3.01
KB
-rw-r--r--
pquery.h
3.5
KB
-rw-r--r--
proto.h
8.28
KB
-rw-r--r--
prt-ext.h
6.22
KB
-rw-r--r--
query-charset.h
2.38
KB
-rw-r--r--
querytowrbuf.h
2.43
KB
-rw-r--r--
readconf.h
2.21
KB
-rw-r--r--
record_conv.h
5.41
KB
-rw-r--r--
record_render.h
2.55
KB
-rw-r--r--
retrieval.h
5.24
KB
-rw-r--r--
rpn2cql.h
3.82
KB
-rw-r--r--
rpn2solr.h
3.85
KB
-rw-r--r--
sc.h
3.35
KB
-rw-r--r--
shptr.h
3.09
KB
-rw-r--r--
snprintf.h
2.13
KB
-rw-r--r--
soap.h
3.36
KB
-rw-r--r--
solr.h
3.76
KB
-rw-r--r--
sortspec.h
4.37
KB
-rw-r--r--
spipe.h
2.64
KB
-rw-r--r--
srw.h
12.04
KB
-rw-r--r--
statserv.h
1.89
KB
-rw-r--r--
stemmer.h
2.36
KB
-rw-r--r--
tcpip.h
2.84
KB
-rw-r--r--
test.h
4.32
KB
-rw-r--r--
thread_create.h
2.65
KB
-rw-r--r--
thread_id.h
2.13
KB
-rw-r--r--
timing.h
3.21
KB
-rw-r--r--
tokenizer.h
2.71
KB
-rw-r--r--
tpath.h
4.05
KB
-rw-r--r--
unix.h
2.04
KB
-rw-r--r--
url.h
3.6
KB
-rw-r--r--
wrbuf.h
9.26
KB
-rw-r--r--
xmalloc.h
5.3
KB
-rw-r--r--
xml_get.h
2.02
KB
-rw-r--r--
xml_include.h
3.06
KB
-rw-r--r--
xmlquery.h
2.24
KB
-rw-r--r--
xmltypes.h
1.9
KB
-rw-r--r--
yaz-ccl.h
2.11
KB
-rw-r--r--
yaz-iconv.h
4.27
KB
-rw-r--r--
yaz-util.h
4.51
KB
-rw-r--r--
yaz-version.h
2.83
KB
-rw-r--r--
yconfig.h
2.28
KB
-rw-r--r--
z-accdes1.h
857
B
-rw-r--r--
z-accform1.h
3.51
KB
-rw-r--r--
z-acckrb1.h
1.1
KB
-rw-r--r--
z-charneg.h
5
KB
-rw-r--r--
z-core.h
39.23
KB
-rw-r--r--
z-date.h
2.77
KB
-rw-r--r--
z-diag1.h
8.69
KB
-rw-r--r--
z-espec1.h
3.77
KB
-rw-r--r--
z-estask.h
1.05
KB
-rw-r--r--
z-exp.h
29.88
KB
-rw-r--r--
z-facet-1.h
941
B
-rw-r--r--
z-grs.h
4.37
KB
-rw-r--r--
z-mterm2.h
877
B
-rw-r--r--
z-oclcui.h
792
B
-rw-r--r--
z-opac.h
2.85
KB
-rw-r--r--
z-rrf1.h
1.65
KB
-rw-r--r--
z-rrf2.h
820
B
-rw-r--r--
z-sum.h
1.32
KB
-rw-r--r--
z-sutrs.h
643
B
-rw-r--r--
z-uifr1.h
2.42
KB
-rw-r--r--
z-univ.h
1.19
KB
-rw-r--r--
zes-admin.h
2.95
KB
-rw-r--r--
zes-expi.h
3.02
KB
-rw-r--r--
zes-exps.h
2.72
KB
-rw-r--r--
zes-order.h
3.61
KB
-rw-r--r--
zes-pquery.h
2.26
KB
-rw-r--r--
zes-psched.h
3.46
KB
-rw-r--r--
zes-pset.h
2.01
KB
-rw-r--r--
zes-update.h
4.93
KB
-rw-r--r--
zes-update0.h
4.45
KB
-rw-r--r--
zgdu.h
4.84
KB
-rw-r--r--
zoom.h
17.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : srw.h
/* This file is part of the YAZ toolkit. * 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Index Data nor the names of its contributors * may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * \file srw.h * \brief Header for SRW/SRU */ #ifndef YAZ_SRW_H #define YAZ_SRW_H #include <yaz/soap.h> #include <yaz/zgdu.h> #include <yaz/diagsrw.h> #include <yaz/diagsru_update.h> #include <yaz/facet.h> YAZ_BEGIN_CDECL typedef struct { char *extraRecordData_buf; int extraRecordData_len; char *recordIdentifier; } Z_SRW_extra_record; typedef struct { char *recordSchema; int recordPacking; /* recordXMLEscaping in SRU 2.0 */ #define Z_SRW_recordPacking_string 0 #define Z_SRW_recordPacking_XML 1 #define Z_SRW_recordPacking_URL 2 char *recordData_buf; int recordData_len; Odr_int *recordPosition; } Z_SRW_record; typedef struct { char *uri; char *details; char *message; } Z_SRW_diagnostic; typedef struct { char *queryType; char *query; #define Z_SRW_sort_type_none 1 #define Z_SRW_sort_type_sort 2 #define Z_SRW_sort_type_xSort 3 int sort_type; union { char *none; char *sortKeys; char *xSortKeys; } sort; Odr_int *startRecord; Odr_int *maximumRecords; char *recordSchema; char *recordPacking; /* recordXMLEscaping in SRU 2.0 */ char *packing; /* recordPacking in SRU 2.0 */ char *recordXPath; char *database; char *stylesheet; Odr_int *resultSetTTL; Z_FacetList *facetList; } Z_SRW_searchRetrieveRequest; typedef struct { Odr_int *numberOfRecords; char *resultCountPrecision; char * resultSetId; Odr_int *resultSetIdleTime; Z_SRW_record *records; int num_records; Z_SRW_diagnostic *diagnostics; int num_diagnostics; Odr_int *nextRecordPosition; Z_SRW_extra_record **extra_records; /* of size num_records */ Z_FacetList *facetList; char *suggestions; } Z_SRW_searchRetrieveResponse; typedef struct { char *recordPacking; char *packing; char *database; char *stylesheet; } Z_SRW_explainRequest; typedef struct { Z_SRW_record record; Z_SRW_diagnostic *diagnostics; int num_diagnostics; Z_SRW_extra_record *extra_record; } Z_SRW_explainResponse; typedef struct { char *queryType; char *scanClause; Odr_int *responsePosition; Odr_int *maximumTerms; char *stylesheet; char *database; } Z_SRW_scanRequest; typedef struct { char *value; Odr_int *numberOfRecords; char *displayTerm; char *whereInList; } Z_SRW_scanTerm; typedef struct { Z_SRW_scanTerm *terms; int num_terms; Z_SRW_diagnostic *diagnostics; int num_diagnostics; } Z_SRW_scanResponse; typedef struct { char *versionType; char *versionValue; } Z_SRW_recordVersion; typedef struct { char *database; char *operation; char *recordId; Z_SRW_recordVersion *recordVersions; int num_recordVersions; Z_SRW_record *record; Z_SRW_extra_record *extra_record; char *extraRequestData_buf; int extraRequestData_len; char *stylesheet; } Z_SRW_updateRequest; typedef struct Z_SRW_extra_arg Z_SRW_extra_arg; struct Z_SRW_extra_arg { char *name; char *value; Z_SRW_extra_arg *next; }; typedef struct { char *operationStatus; char *recordId; Z_SRW_recordVersion *recordVersions; int num_recordVersions; Z_SRW_record *record; Z_SRW_extra_record *extra_record; char *extraResponseData_buf; int extraResponseData_len; Z_SRW_diagnostic *diagnostics; int num_diagnostics; } Z_SRW_updateResponse; #define Z_SRW_searchRetrieve_request 1 #define Z_SRW_searchRetrieve_response 2 #define Z_SRW_explain_request 3 #define Z_SRW_explain_response 4 #define Z_SRW_scan_request 5 #define Z_SRW_scan_response 6 #define Z_SRW_update_request 7 #define Z_SRW_update_response 8 typedef struct { int which; union { Z_SRW_searchRetrieveRequest *request; Z_SRW_searchRetrieveResponse *response; Z_SRW_explainRequest *explain_request; Z_SRW_explainResponse *explain_response; Z_SRW_scanRequest *scan_request; Z_SRW_scanResponse *scan_response; Z_SRW_updateRequest *update_request; Z_SRW_updateResponse *update_response; } u; char *srw_version; char *username; /* From HTTP header or request */ char *password; /* From HTTP header or request */ /* 1. SRU extraRequestData x-name=value for requests encoding */ /* 2. SRU extraRequestData x-name=value for requests decoding */ /* 3. SRU echoed data for response encoding */ Z_SRW_extra_arg *extra_args; char *extraResponseData_buf; int extraResponseData_len; } Z_SRW_PDU; YAZ_EXPORT int yaz_srw_codec(ODR o, void * pptr, Z_SRW_PDU **handler_data, void *client_data, const char *ns); YAZ_EXPORT int yaz_ucp_codec(ODR o, void * pptr, Z_SRW_PDU **handler_data, void *client_data, const char *ns); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get_core_v_2_0(ODR o); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get_pdu(ODR o, int which, const char *version); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get_pdu_e(ODR o, int which, Z_SRW_PDU *req); YAZ_EXPORT Z_SRW_PDU *yaz_srw_get(ODR o, int which); YAZ_EXPORT Z_SRW_recordVersion *yaz_srw_get_record_versions(ODR o, int num); YAZ_EXPORT Z_SRW_extra_record *yaz_srw_get_extra_record(ODR o); YAZ_EXPORT Z_SRW_record *yaz_srw_get_record(ODR o); YAZ_EXPORT Z_SRW_record *yaz_srw_get_records(ODR o, int num); YAZ_EXPORT int yaz_diag_bib1_to_srw (int bib1_code); YAZ_EXPORT int yaz_diag_srw_to_bib1(int srw_code); YAZ_EXPORT const char *yaz_srw_pack_to_str(int pack); YAZ_EXPORT int yaz_srw_str_to_pack(const char *str); YAZ_EXPORT int yaz_uri_to_array(const char *path, ODR o, char ***name, char ***val); YAZ_EXPORT void yaz_array_to_uri(char **path, ODR o, char **name, char **value); /** \brief encodes URI component \param dst destination string (should be at least 3*strlen(uri)+1) \param uri URI component C-string (source) */ YAZ_EXPORT void yaz_encode_uri_component(char *dst, const char *uri); /** \brief decodes URI component \param dst destination string (should be at least strlen(uri)+1) \param uri URI component buffer (source) \param len number of bytes to decode from uri */ YAZ_EXPORT void yaz_decode_uri_component(char *dst, const char *uri, size_t len); YAZ_EXPORT int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, Z_SOAP **soap_package, ODR decode, char **charset); YAZ_EXPORT int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, Z_SOAP **soap_package, ODR decode, char **charset, Z_SRW_diagnostic **, int *num_diagnostic); /** \brief decode SOLR response (HTTP) \param o ODR for result \param hres HTTP response to be decoded \param pdup SRW response pointer (set if successful) \retval -1 fail \retval 0 OK */ YAZ_EXPORT int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup); YAZ_EXPORT void yaz_add_srw_diagnostic(ODR o, Z_SRW_diagnostic **d, int *num, int code, const char *addinfo); YAZ_EXPORT void yaz_add_sru_update_diagnostic(ODR o, Z_SRW_diagnostic **d, int *num, int code, const char *addinfo); YAZ_EXPORT void yaz_mk_std_diagnostic(ODR o, Z_SRW_diagnostic *d, int code, const char *details); YAZ_EXPORT void yaz_add_srw_diagnostic_uri(ODR o, Z_SRW_diagnostic **d, int *num, const char *uri, const char *message, const char *details); YAZ_EXPORT void yaz_mk_srw_diagnostic(ODR o, Z_SRW_diagnostic *d, const char *uri, const char *message, const char *details); YAZ_EXPORT int yaz_sru_get_encode(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR encode, const char *charset); YAZ_EXPORT int yaz_sru_post_encode(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR encode, const char *charset); YAZ_EXPORT int yaz_sru_soap_encode(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR odr, const char *charset); /** \brief encode SOLR request (HTTP) \param hreq HTTP request to be modified (with encoded request) \param srw_pdu SRW request \param encode ODR for result \param charset character set for request (may be NULL) \retval -1 fail \retval 0 OK */ YAZ_EXPORT int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR encode, const char *charset); YAZ_EXPORT void yaz_encode_sru_extra(Z_SRW_PDU *sr, ODR odr, const char *extra_args); #define YAZ_XMLNS_SRU_v1_0 "http://www.loc.gov/zing/srw/v1.0/" #define YAZ_XMLNS_SRU_v1_1 "http://www.loc.gov/zing/srw/" #define YAZ_XMLNS_DIAG_v1_1 "http://www.loc.gov/zing/srw/diagnostic/" #define YAZ_XMLNS_DIAG_v2 "http://docs.oasis-open.org/ns/search-ws/diagnostic" #define YAZ_XMLNS_UPDATE_v0_9 "http://www.loc.gov/zing/srw/update/" #define YAZ_XMLNS_SRU_v2_mask "http://docs.oasis-open.org/ns/search-ws/*" #define YAZ_XMLNS_SRU_v1_response "http://www.loc.gov/*" YAZ_EXPORT int yaz_srw_check_content_type(Z_HTTP_Response *hres); YAZ_EXPORT int sru_decode_surrogate_diagnostics(const char *buf, size_t len, Z_SRW_diagnostic **diag, int *num, ODR odr); YAZ_EXPORT void yaz_mk_sru_surrogate(ODR o, Z_SRW_record *record, int pos, int code, const char *details); /** \brief encode SRU database for HTTP path \param out memory handle for resulting encoded database string \param db source database \returns encoded database path (includes leading /) */ YAZ_EXPORT char *yaz_encode_sru_dbpath_odr(ODR out, const char *db); /** \brief encode SRU database for HTTP path \param dst destination buffer (should be at least strlen(db) +2 in size) \param db source database The resulting database (dst) includes a leading / */ YAZ_EXPORT void yaz_encode_sru_dbpath_buf(char *dst, const char *db); YAZ_END_CDECL #endif /* * Local variables: * c-basic-offset: 4 * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */
Close