Commit b52afe4d authored by Ian Murdock's avatar Ian Murdock

Use the Elvin sync API.

parent 48099c04
# Makefile for building event system tests
#
# $Id: Makefile,v 1.4 2002-01-29 17:24:58 imurdock Exp $
# $Id: Makefile,v 1.5 2002-02-19 15:51:01 imurdock Exp $
CC = gcc
CFLAGS = -g -I. -I../lib -Wall -DDEBUG
LDFLAGS =
LIBS = -lpthread -L../lib -levent
CFLAGS += `elvin-config --cflags`
LIBS += `elvin-config --libs`
CFLAGS += `elvin-config --cflags vin4mt`
LIBS += `elvin-config --libs vin4mt`
MV = mv -f
RM = rm -f
......
/* test-attr-consume.c: Test delivery of events, with attributes (consumer). */
static char rcsid[] = "$Id: test-attr-consume.c,v 1.4 2002-01-29 17:12:51 imurdock Exp $";
static char rcsid[] = "$Id: test-attr-consume.c,v 1.5 2002-02-19 15:51:01 imurdock Exp $";
#include <event.h>
......@@ -26,7 +26,7 @@ main(int argc, char **argv)
}
/* Register with the event system: */
handle = event_register(server);
handle = event_register(server, 0);
if (handle == NULL) {
ERROR("could not register with event system\n");
return 1;
......
/* test-attr-produce.c: Test delivery of events, with attributes (producer). */
static char rcsid[] = "$Id: test-attr-produce.c,v 1.4 2002-01-29 17:23:34 imurdock Exp $";
static char rcsid[] = "$Id: test-attr-produce.c,v 1.5 2002-02-19 15:51:01 imurdock Exp $";
#include <event.h>
......@@ -31,7 +31,7 @@ main(int argc, char **argv)
}
/* Register with the event system: */
handle = event_register(server);
handle = event_register(server, 0);
if (handle == NULL) {
ERROR("could not register with event system\n");
return 1;
......
/* test-consume.c: Test delivery of events (consumer). */
static char rcsid[] = "$Id: test-consume.c,v 1.3 2002-01-29 12:18:49 imurdock Exp $";
static char rcsid[] = "$Id: test-consume.c,v 1.4 2002-02-19 15:51:01 imurdock Exp $";
#include <event.h>
......@@ -26,7 +26,7 @@ main(int argc, char **argv)
}
/* Register with the event system: */
handle = event_register(server);
handle = event_register(server, 0);
if (handle == NULL) {
ERROR("could not register with event system\n");
return 1;
......
/* test-produce.c: Test delivery of events (producer). */
static char rcsid[] = "$Id: test-produce.c,v 1.2 2001-11-06 17:24:16 imurdock Exp $";
static char rcsid[] = "$Id: test-produce.c,v 1.3 2002-02-19 15:51:01 imurdock Exp $";
#include <event.h>
......@@ -24,7 +24,7 @@ main(int argc, char **argv)
}
/* Register with the event system: */
handle = event_register(server);
handle = event_register(server, 0);
if (handle == NULL) {
ERROR("could not register with event system\n");
return 1;
......
/* test-sched-produce.c: Test event scheduler, with attributes (producer).
This test may be used with test-consume or test-attr-consume. */
static char rcsid[] = "$Id: test-sched-produce.c,v 1.1 2002-01-29 17:24:59 imurdock Exp $";
static char rcsid[] = "$Id: test-sched-produce.c,v 1.2 2002-02-19 15:51:01 imurdock Exp $";
#include <event.h>
......@@ -32,7 +32,7 @@ main(int argc, char **argv)
}
/* Register with the event system: */
handle = event_register(server);
handle = event_register(server, 0);
if (handle == NULL) {
ERROR("could not register with event system\n");
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment