aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/subscr.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-05-19 16:30:13 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-19 16:30:13 -0400
commit5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a (patch)
tree7c52f30881912ed94f15f4c367d23e44ad864776 /net/tipc/subscr.h
parent28353e7fad1d224687220a448950dc552645a50a (diff)
tipc: Cosmetic cleanup of topology service code
This patch contains a set of cosmetic changes to TIPC's network topology service subsystem, including: - updates to comments (including copyright dates) - re-ordering structure fields to group them more logically - removal of optional debugging code that is no longer required - minor changes to whitespace to conform to Linux coding conventions 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.h20
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
60struct subscription { 60struct 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
73int tipc_subscr_overlap(struct subscription * sub, 73int tipc_subscr_overlap(struct subscription *sub,
74 u32 found_lower, 74 u32 found_lower,
75 u32 found_upper); 75 u32 found_upper);
76 76
77void tipc_subscr_report_overlap(struct subscription * sub, 77void 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,