X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz-z-assoc.h;h=88f167b14526dc89b6fe1493b8bba0be291bc16f;hb=7842145941670b18deaa257bb3e57d21d71cc90a;hp=4a47d684a3fb4380f6c9dbbef81f2f7a36b35825;hpb=1063240efa2d4f03a72353936e8a7b73ee249b0d;p=yazpp-moved-to-github.git diff --git a/include/yaz-z-assoc.h b/include/yaz-z-assoc.h index 4a47d68..88f167b 100644 --- a/include/yaz-z-assoc.h +++ b/include/yaz-z-assoc.h @@ -1,11 +1,13 @@ /* - * Copyright (c) 1998-1999, Index Data. + * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Id: yaz-z-assoc.h,v 1.6 2000-05-10 11:36:58 ian Exp $ + * $Id: yaz-z-assoc.h,v 1.9 2000-09-08 12:50:24 heikki Exp $ */ +#ifndef YAZ_Z_ASSOC_INCLUDED +#define YAZ_Z_ASSOC_INCLUDED + #include #include #include @@ -51,6 +53,9 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { ODR odr_decode (); ODR odr_print (); + void set_APDU_log(const char *fname); + const char *get_APDU_log(); + /// OtherInformation void get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip); Z_OtherInformationUnit *update_otherInformation ( @@ -68,10 +73,11 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { Z_APDU *apdu, int oidval, int categoryValue, const char *str); - void set_apdu_log(const char *file); Z_ReferenceId* getRefID(char* str); + const char *get_hostname(); + private: static int yaz_init_flag; static int yaz_init_func(); @@ -80,4 +86,9 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { ODR m_odr_out; ODR m_odr_print; int m_log; + FILE *m_APDU_file; + char *m_APDU_fname; + char *m_hostname; }; + +#endif \ No newline at end of file