diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-04 00:41:44 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-04 00:50:25 -0500 |
commit | cd001f7b40f9dd1e5dfbf0c436531a03064f9391 (patch) | |
tree | e02d368fdb7062f5da498ede824c3f018c659c9a /plugin_mac80211.c | |
parent | ec350cbbabfb98965565a6d220b40f56a598be7f (diff) |
Add handler to pevent functions
Currently pevent uses global variables to store the event types.
This will eventually bite us since we may someday want to be able
to read multiple files with different formats. This patch adds
a handle to pevent, to keep it encapsulated.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'plugin_mac80211.c')
-rw-r--r-- | plugin_mac80211.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin_mac80211.c b/plugin_mac80211.c index bf12bd0..7758b58 100644 --- a/plugin_mac80211.c +++ b/plugin_mac80211.c | |||
@@ -194,11 +194,11 @@ static int drv_config(struct trace_seq *s, void *data, | |||
194 | return 0; | 194 | return 0; |
195 | } | 195 | } |
196 | 196 | ||
197 | int PEVENT_PLUGIN_LOADER(void) | 197 | int PEVENT_PLUGIN_LOADER(struct pevent *pevent) |
198 | { | 198 | { |
199 | pevent_register_event_handler(-1, "mac80211", "drv_bss_info_changed", | 199 | pevent_register_event_handler(pevent, -1, "mac80211", "drv_bss_info_changed", |
200 | drv_bss_info_changed); | 200 | drv_bss_info_changed); |
201 | pevent_register_event_handler(-1, "mac80211", "drv_config", | 201 | pevent_register_event_handler(pevent, -1, "mac80211", "drv_config", |
202 | drv_config); | 202 | drv_config); |
203 | 203 | ||
204 | return 0; | 204 | return 0; |