aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/vis.h
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2010-01-02 11:30:46 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 16:42:35 -0800
commite9b764506aeb06ada6a7d0a24eda3e6eb70bade1 (patch)
tree3f667c66584845e0e5aa8fac69c829e7a38b33db /drivers/staging/batman-adv/vis.h
parentStaging: batman-adv: remove obsoleted vis_format /proc file (diff)
downloadlinux-dev-e9b764506aeb06ada6a7d0a24eda3e6eb70bade1.tar.xz
linux-dev-e9b764506aeb06ada6a7d0a24eda3e6eb70bade1.zip
Staging: batman-adv: splitting /proc vis file into vis_server and vis_data
The /proc vis file was used to enable/disable the vis server and to output the vis data at the same time. This behaviour was confusing and lacked a proper method to display the current vis server status. This patch seperates the 2 functionalities: * use vis_server to enable/disable the vis server and to retrieve its status * use vis_data to retrieve the vis raw data (if the server is enabled) Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/vis.h')
-rw-r--r--drivers/staging/batman-adv/vis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/batman-adv/vis.h b/drivers/staging/batman-adv/vis.h
index ff88a43fc674..2e24258e69a4 100644
--- a/drivers/staging/batman-adv/vis.h
+++ b/drivers/staging/batman-adv/vis.h
@@ -50,6 +50,12 @@ extern spinlock_t vis_hash_lock;
void vis_set_mode(int mode);
int is_vis_server(void);
+void proc_vis_read_entry(struct seq_file *seq,
+ struct vis_info_entry *entry,
+ struct hlist_head *if_list,
+ uint8_t *vis_orig);
+void proc_vis_read_prim_sec(struct seq_file *seq,
+ struct hlist_head *if_list);
void receive_server_sync_packet(struct vis_packet *vis_packet,
int vis_info_len);
void receive_client_update_packet(struct vis_packet *vis_packet,