From 17260b14682d4fe59dad3de2de8c9370e6ba9a71 Mon Sep 17 00:00:00 2001 From: "Mike J. Chen" Date: Thu, 23 Jun 2011 15:00:30 -0700 Subject: Cleanup NetlinkListener and NetlinkEvent To make it easier to be compatible with older existing code, use default parameters instead of separate functions for setting. Also, reintroduce the const usage that was not in the original changes by Stan. Also fix some indent spacing. Change-Id: Ice9ec7f0d5c4a0673037e2e04a764d88a98f68eb Signed-off-by: Mike J. Chen --- include/sysutils/NetlinkEvent.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/sysutils/NetlinkEvent.h') diff --git a/include/sysutils/NetlinkEvent.h b/include/sysutils/NetlinkEvent.h index 1ee9849..25a56f7 100644 --- a/include/sysutils/NetlinkEvent.h +++ b/include/sysutils/NetlinkEvent.h @@ -16,6 +16,8 @@ #ifndef _NETLINKEVENT_H #define _NETLINKEVENT_H +#include + #define NL_PARAMS_MAX 32 class NetlinkEvent { @@ -36,7 +38,7 @@ public: NetlinkEvent(); virtual ~NetlinkEvent(); - bool decode(char *buffer, int size, int format); + bool decode(char *buffer, int size, int format = NetlinkListener::NETLINK_FORMAT_ASCII); const char *findParam(const char *paramName); const char *getSubsystem() { return mSubsystem; } -- cgit v1.1