X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fp2_backend.h;fp=src%2Fp2_backend.h;h=b5864b37972aea83eab6bb75b71f6499582d5916;hb=42cd2c5dddd315dd85b626b125a750e8203c739a;hp=0000000000000000000000000000000000000000;hpb=5108598ba9fe27a03aad0371d28bb7062b6463fc;p=yazproxy-moved-to-github.git diff --git a/src/p2_backend.h b/src/p2_backend.h new file mode 100644 index 0000000..b5864b3 --- /dev/null +++ b/src/p2_backend.h @@ -0,0 +1,31 @@ + +#ifndef P2_BACKEND_H +#define P2_BACKEND_H + +#include + +class IP2_BackendSet { +public: + virtual ~IP2_BackendSet(); + virtual int get(int start, int number) = 0; +}; + +class IP2_Backend { + public: + virtual ~IP2_Backend(); + virtual int search(yazpp_1::Yaz_Z_Query *q, IP2_BackendSet **rset, int *hits) = 0; +}; + +struct P2_ModuleInterface0 { + IP2_Backend *(*create)(const char *address); +}; + +struct P2_ModuleEntry { + int version; + const char *name; + const char *description; + void *interface_ptr; +}; + + +#endif