summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.h
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2009-06-06 07:31:27 +0000
committerEric Faurot <eric@cvs.openbsd.org>2009-06-06 07:31:27 +0000
commitcd9e24e8e0859fe9e77873ee1d58d24c53926189 (patch)
tree0db9a3a3e25e3dca184394210b9f7bb8c4b4b668 /usr.sbin/ospfd/ospfd.h
parenta7dd29169a302483d3f6a7609d1bed450c6ffe94 (diff)
sync ospfctl/ospfd with the common imsg code, making it lib ready as well.
"looks ok" claudio@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.h')
-rw-r--r--usr.sbin/ospfd/ospfd.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h
index 05690e0a6a1..170700a9b52 100644
--- a/usr.sbin/ospfd/ospfd.h
+++ b/usr.sbin/ospfd/ospfd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.h,v 1.81 2009/06/05 19:33:59 pyr Exp $ */
+/* $OpenBSD: ospfd.h,v 1.82 2009/06/06 07:31:26 eric Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -60,6 +60,14 @@
#define F_BLACKHOLE 0x0080
#define F_REDISTRIBUTED 0x0100
+struct imsgev {
+ struct imsgbuf ibuf;
+ void (*handler)(int, short, void *);
+ struct event ev;
+ void *data;
+ short events;
+};
+
enum imsg_type {
IMSG_NONE,
IMSG_CTL_RELOAD,
@@ -566,8 +574,8 @@ void main_imsg_compose_ospfe(int, pid_t, void *, u_int16_t);
void main_imsg_compose_rde(int, pid_t, void *, u_int16_t);
int ospf_redistribute(struct kroute *, u_int32_t *);
void merge_config(struct ospfd_conf *, struct ospfd_conf *);
-void imsg_event_add(struct imsgbuf *);
-int imsg_compose_event(struct imsgbuf *, u_int16_t, u_int32_t,
+void imsg_event_add(struct imsgev *);
+int imsg_compose_event(struct imsgev *, u_int16_t, u_int32_t,
pid_t, int, void *, u_int16_t);
/* printconf.c */