diff options
Diffstat (limited to 'net/tipc/config.h')
-rw-r--r-- | net/tipc/config.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/net/tipc/config.h b/net/tipc/config.h index 646377d40454..7a728f954d84 100644 --- a/net/tipc/config.h +++ b/net/tipc/config.h | |||
@@ -39,42 +39,41 @@ | |||
39 | 39 | ||
40 | /* ---------------------------------------------------------------------- */ | 40 | /* ---------------------------------------------------------------------- */ |
41 | 41 | ||
42 | #include <linux/tipc.h> | 42 | #include "core.h" |
43 | #include <linux/tipc_config.h> | ||
44 | #include "link.h" | 43 | #include "link.h" |
45 | 44 | ||
46 | struct sk_buff *cfg_reply_alloc(int payload_size); | 45 | struct sk_buff *tipc_cfg_reply_alloc(int payload_size); |
47 | int cfg_append_tlv(struct sk_buff *buf, int tlv_type, | 46 | int tipc_cfg_append_tlv(struct sk_buff *buf, int tlv_type, |
48 | void *tlv_data, int tlv_data_size); | 47 | void *tlv_data, int tlv_data_size); |
49 | struct sk_buff *cfg_reply_unsigned_type(u16 tlv_type, u32 value); | 48 | struct sk_buff *tipc_cfg_reply_unsigned_type(u16 tlv_type, u32 value); |
50 | struct sk_buff *cfg_reply_string_type(u16 tlv_type, char *string); | 49 | struct sk_buff *tipc_cfg_reply_string_type(u16 tlv_type, char *string); |
51 | 50 | ||
52 | static inline struct sk_buff *cfg_reply_none(void) | 51 | static inline struct sk_buff *tipc_cfg_reply_none(void) |
53 | { | 52 | { |
54 | return cfg_reply_alloc(0); | 53 | return tipc_cfg_reply_alloc(0); |
55 | } | 54 | } |
56 | 55 | ||
57 | static inline struct sk_buff *cfg_reply_unsigned(u32 value) | 56 | static inline struct sk_buff *tipc_cfg_reply_unsigned(u32 value) |
58 | { | 57 | { |
59 | return cfg_reply_unsigned_type(TIPC_TLV_UNSIGNED, value); | 58 | return tipc_cfg_reply_unsigned_type(TIPC_TLV_UNSIGNED, value); |
60 | } | 59 | } |
61 | 60 | ||
62 | static inline struct sk_buff *cfg_reply_error_string(char *string) | 61 | static inline struct sk_buff *tipc_cfg_reply_error_string(char *string) |
63 | { | 62 | { |
64 | return cfg_reply_string_type(TIPC_TLV_ERROR_STRING, string); | 63 | return tipc_cfg_reply_string_type(TIPC_TLV_ERROR_STRING, string); |
65 | } | 64 | } |
66 | 65 | ||
67 | static inline struct sk_buff *cfg_reply_ultra_string(char *string) | 66 | static inline struct sk_buff *tipc_cfg_reply_ultra_string(char *string) |
68 | { | 67 | { |
69 | return cfg_reply_string_type(TIPC_TLV_ULTRA_STRING, string); | 68 | return tipc_cfg_reply_string_type(TIPC_TLV_ULTRA_STRING, string); |
70 | } | 69 | } |
71 | 70 | ||
72 | struct sk_buff *cfg_do_cmd(u32 orig_node, u16 cmd, | 71 | struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, |
73 | const void *req_tlv_area, int req_tlv_space, | 72 | const void *req_tlv_area, int req_tlv_space, |
74 | int headroom); | 73 | int headroom); |
75 | 74 | ||
76 | void cfg_link_event(u32 addr, char *name, int up); | 75 | void tipc_cfg_link_event(u32 addr, char *name, int up); |
77 | int cfg_init(void); | 76 | int tipc_cfg_init(void); |
78 | void cfg_stop(void); | 77 | void tipc_cfg_stop(void); |
79 | 78 | ||
80 | #endif | 79 | #endif |