Header file for "fake" implementation of consumer API.
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 9 Nov 2004 15:25:31 +0000 (15:25 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 9 Nov 2004 15:25:31 +0000 (15:25 +0000)
org.glite.lb.client-interface/Makefile
org.glite.lb.client-interface/interface/consumer_fake.h [new file with mode: 0644]

index 2178b0e..a4e2c69 100644 (file)
@@ -19,7 +19,8 @@ AT3=perl -I${top_srcdir}/project ${top_srcdir}/project/at3
 
 STAGETO=include/${globalprefix}/${lbprefix}
 STATIC_H=consumer.h context.h dump.h load.h notification.h notifid.h purge.h \
-       Notification.h CountRef.h Job.h LoggingExceptions.h ServerConnection.h
+       Notification.h CountRef.h Job.h LoggingExceptions.h ServerConnection.h \
+       consumer_fake.h
 GEN_H=events.h jobstat.h producer.h Event.h JobStatus.h
 
 
diff --git a/org.glite.lb.client-interface/interface/consumer_fake.h b/org.glite.lb.client-interface/interface/consumer_fake.h
new file mode 100644 (file)
index 0000000..aaee26d
--- /dev/null
@@ -0,0 +1,16 @@
+/* $Id: */
+
+#ifndef WORKLOAD_LOGGING_CLIENT_CONSUMER_FAKE_H
+#define WORKLOAD_LOGGING_CLIENT_CONSUMER_FAKE_H
+
+#include "glite/lb/context-int.h"
+
+typedef int (edg_wll_QueryEvents_cb_f)(edg_wll_Context context, edg_wll_Event **events);
+typedef int (edg_wll_QueryListener_cb_f)(edg_wll_Context context, char **host, uint16_t *port);
+
+int egd_wll_RegisterTestQueryEvents(edg_wll_QueryEvents_cb_f *cb);
+int egd_wll_RegisterTestQueryListener(edg_wll_QueryListener_cb_f *cb);
+void egd_wll_UnregisterTestQueryEvents();
+void egd_wll_UnregisterTestQueryListener();
+
+#endif /* WORKLOAD_LOGGING_CLIENT_CONSUMER_FAKE_H */