diff options
Diffstat (limited to 'net/tipc/subscr.h')
-rw-r--r-- | net/tipc/subscr.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h index b9af687b6368..45d89bf4d202 100644 --- a/net/tipc/subscr.h +++ b/net/tipc/subscr.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * net/tipc/subscr.h: Include file for TIPC subscription service | 2 | * net/tipc/subscr.h: Include file for TIPC network topology service |
3 | * | 3 | * |
4 | * Copyright (c) 2003-2006, Ericsson AB | 4 | * Copyright (c) 2003-2006, Ericsson AB |
5 | * Copyright (c) 2005, Wind River Systems | 5 | * Copyright (c) 2005-2007, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -49,12 +49,12 @@ typedef void (*tipc_subscr_event) (struct subscription *sub, | |||
49 | * @timeout: duration of subscription (in ms) | 49 | * @timeout: duration of subscription (in ms) |
50 | * @filter: event filtering to be done for subscription | 50 | * @filter: event filtering to be done for subscription |
51 | * @event_cb: routine invoked when a subscription event is detected | 51 | * @event_cb: routine invoked when a subscription event is detected |
52 | * @timer: timer governing subscription duration (optional) | ||
53 | * @nameseq_list: adjacent subscriptions in name sequence's subscription list | ||
54 | * @subscription_list: adjacent subscriptions in subscriber's subscription list | ||
52 | * @server_ref: object reference of server port associated with subscription | 55 | * @server_ref: object reference of server port associated with subscription |
53 | * @swap: indicates if subscriber uses opposite endianness in its messages | 56 | * @swap: indicates if subscriber uses opposite endianness in its messages |
54 | * @evt: template for events generated by subscription | 57 | * @evt: template for events generated by subscription |
55 | * @subscription_list: adjacent subscriptions in subscriber's subscription list | ||
56 | * @nameseq_list: adjacent subscriptions in name sequence's subscription list | ||
57 | * @timer_ref: reference to timer governing subscription duration (may be NULL) | ||
58 | */ | 58 | */ |
59 | 59 | ||
60 | struct subscription { | 60 | struct subscription { |
@@ -62,19 +62,19 @@ struct subscription { | |||
62 | u32 timeout; | 62 | u32 timeout; |
63 | u32 filter; | 63 | u32 filter; |
64 | tipc_subscr_event event_cb; | 64 | tipc_subscr_event event_cb; |
65 | struct timer_list timer; | ||
66 | struct list_head nameseq_list; | ||
67 | struct list_head subscription_list; | ||
65 | u32 server_ref; | 68 | u32 server_ref; |
66 | int swap; | 69 | int swap; |
67 | struct tipc_event evt; | 70 | struct tipc_event evt; |
68 | struct list_head subscription_list; | ||
69 | struct list_head nameseq_list; | ||
70 | struct timer_list timer; | ||
71 | }; | 71 | }; |
72 | 72 | ||
73 | int tipc_subscr_overlap(struct subscription * sub, | 73 | int tipc_subscr_overlap(struct subscription *sub, |
74 | u32 found_lower, | 74 | u32 found_lower, |
75 | u32 found_upper); | 75 | u32 found_upper); |
76 | 76 | ||
77 | void tipc_subscr_report_overlap(struct subscription * sub, | 77 | void tipc_subscr_report_overlap(struct subscription *sub, |
78 | u32 found_lower, | 78 | u32 found_lower, |
79 | u32 found_upper, | 79 | u32 found_upper, |
80 | u32 event, | 80 | u32 event, |