summaryrefslogtreecommitdiff
path: root/net/tipc/subscr.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-05-19 13:27:31 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-19 13:27:31 -0700
commite15f880409c807bb589e9492263564e80f0de6e9 (patch)
treed451964bd4a58a8a5566413db15a44b79227400a /net/tipc/subscr.h
parent236ae64063faf7d3398b4f9a889421b0d27a69d2 (diff)
tipc: Add support for customized subscription overlap handling
This patch enables TIPC's topology server code to do customized overlap detection handling on a per-subscription basis. (This capability is needed to support the upcoming introduction of multi-cluster TIPC networks.) Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/subscr.h')
-rw-r--r--net/tipc/subscr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h
index 93a8e674fac1..d95536832907 100644
--- a/net/tipc/subscr.h
+++ b/net/tipc/subscr.h
@@ -37,11 +37,18 @@
#ifndef _TIPC_SUBSCR_H
#define _TIPC_SUBSCR_H
+struct subscription;
+
+typedef void (*tipc_subscr_event) (struct subscription *sub,
+ u32 found_lower, u32 found_upper,
+ u32 event, u32 port_ref, u32 node);
+
/**
* struct subscription - TIPC network topology subscription object
* @seq: name sequence associated with subscription
* @timeout: duration of subscription (in ms)
* @filter: event filtering to be done for subscription
+ * @event_cb: routine invoked when a subscription event is detected
* @evt: template for events generated by subscription
* @subscription_list: adjacent subscriptions in subscriber's subscription list
* @nameseq_list: adjacent subscriptions in name sequence's subscription list
@@ -53,6 +60,7 @@ struct subscription {
struct tipc_name_seq seq;
u32 timeout;
u32 filter;
+ tipc_subscr_event event_cb;
struct tipc_event evt;
struct list_head subscription_list;
struct list_head nameseq_list;