From a8efb47c389b9720d60b4a9d0c1b5ee3e0e96fc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Tue, 9 Nov 2004 15:25:31 +0000 Subject: [PATCH] Header file for "fake" implementation of consumer API. --- org.glite.lb.client-interface/Makefile | 3 ++- org.glite.lb.client-interface/interface/consumer_fake.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 org.glite.lb.client-interface/interface/consumer_fake.h diff --git a/org.glite.lb.client-interface/Makefile b/org.glite.lb.client-interface/Makefile index 2178b0e..a4e2c69 100644 --- a/org.glite.lb.client-interface/Makefile +++ b/org.glite.lb.client-interface/Makefile @@ -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 index 0000000..aaee26d --- /dev/null +++ b/org.glite.lb.client-interface/interface/consumer_fake.h @@ -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 */ -- 1.8.2.3