X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz-pdu-observer.h;h=cd4d24697b95b7a8b1f012bf65c4de7e895f637d;hb=cc44793fb69db2885c570cc5de05fda796993bba;hp=eef08b49353ef4f57a3d10d08da4af11468d28b0;hpb=bf377ba45c8c1cbcf843fdecc6d5c68fda6bad18;p=yazpp-moved-to-github.git diff --git a/include/yaz-pdu-observer.h b/include/yaz-pdu-observer.h index eef08b4..cd4d246 100644 --- a/include/yaz-pdu-observer.h +++ b/include/yaz-pdu-observer.h @@ -4,8 +4,15 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-pdu-observer.h,v $ - * Revision 1.1 1999-01-28 09:41:07 adam - * Initial revision + * Revision 1.3 1999-02-02 14:01:14 adam + * First WIN32 port of YAZ++. + * + * Revision 1.2 1999/01/28 13:08:41 adam + * Yaz_PDU_Assoc better encapsulated. Memory leak fix in + * yaz-socket-manager.cc. + * + * Revision 1.1.1.1 1999/01/28 09:41:07 adam + * First implementation of YAZ++. * */ @@ -20,7 +27,7 @@ class IYaz_PDU_Observer; transmitted/received over the network. To use this interface the IYaz_PDU_Observer interface must be implemented. */ -class IYaz_PDU_Observable { +class YAZ_EXPORT IYaz_PDU_Observable { public: /// Send encoded PDU buffer of specified length virtual int send_PDU(const char *buf, int len) = 0; @@ -32,13 +39,15 @@ class IYaz_PDU_Observable { virtual void close() = 0; /// Make clone of this object using this interface virtual IYaz_PDU_Observable *clone() = 0; + /// Destroy completely + virtual void destroy() = 0; }; /** Protocol Data Unit Observer. This interface is used together with the IYaz_PDU_Observable interface and acts as a callback interface for it. */ -class IYaz_PDU_Observer { +class YAZ_EXPORT IYaz_PDU_Observer { public: /// A PDU has been received virtual void recv_PDU(const char *buf, int len) = 0;