|
@@ -37,11 +37,18 @@
|
|
#ifndef _TIPC_SUBSCR_H
|
|
#ifndef _TIPC_SUBSCR_H
|
|
#define _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
|
|
* struct subscription - TIPC network topology subscription object
|
|
* @seq: name sequence associated with subscription
|
|
* @seq: name sequence associated with subscription
|
|
* @timeout: duration of subscription (in ms)
|
|
* @timeout: duration of subscription (in ms)
|
|
* @filter: event filtering to be done for subscription
|
|
* @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
|
|
* @evt: template for events generated by subscription
|
|
* @subscription_list: adjacent subscriptions in subscriber's subscription list
|
|
* @subscription_list: adjacent subscriptions in subscriber's subscription list
|
|
* @nameseq_list: adjacent subscriptions in name sequence's subscription list
|
|
* @nameseq_list: adjacent subscriptions in name sequence's subscription list
|
|
@@ -53,6 +60,7 @@ struct subscription {
|
|
struct tipc_name_seq seq;
|
|
struct tipc_name_seq seq;
|
|
u32 timeout;
|
|
u32 timeout;
|
|
u32 filter;
|
|
u32 filter;
|
|
|
|
+ tipc_subscr_event event_cb;
|
|
struct tipc_event evt;
|
|
struct tipc_event evt;
|
|
struct list_head subscription_list;
|
|
struct list_head subscription_list;
|
|
struct list_head nameseq_list;
|
|
struct list_head nameseq_list;
|