diff options
author | Mike J. Chen <mjchen@google.com> | 2011-06-23 15:00:30 -0700 |
---|---|---|
committer | Mike J. Chen <mjchen@google.com> | 2011-06-23 18:59:45 -0700 |
commit | 17260b14682d4fe59dad3de2de8c9370e6ba9a71 (patch) | |
tree | e27c5d98b06c7b0b83702bd161b70a1a40b9dd44 /include/sysutils/NetlinkEvent.h | |
parent | ec16b9d47cacb0d873ee0ff80c919f49215c0005 (diff) | |
download | system_core-17260b14682d4fe59dad3de2de8c9370e6ba9a71.zip system_core-17260b14682d4fe59dad3de2de8c9370e6ba9a71.tar.gz system_core-17260b14682d4fe59dad3de2de8c9370e6ba9a71.tar.bz2 |
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 <mjchen@google.com>
Diffstat (limited to 'include/sysutils/NetlinkEvent.h')
-rw-r--r-- | include/sysutils/NetlinkEvent.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sysutils/NetlinkListener.h> + #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; } |