blob: 4fff5a2fb8293b4602ef4ad9d16622a6c634da90 [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_RTNL_LISTENER_
#define SHILL_RTNL_LISTENER_
#include <base/callback_old.h>
struct nlmsghdr;
namespace shill {
class RTNLListener {
public:
RTNLListener(int listen_flags, Callback1<struct nlmsghdr *>::Type *callback);
~RTNLListener();
void NotifyEvent(int type, struct nlmsghdr *hdr);
private:
int listen_flags_;
Callback1<struct nlmsghdr *>::Type *callback_;
DISALLOW_COPY_AND_ASSIGN(RTNLListener);
};
} // namespace shill
#endif // SHILL_RTNL_LISTENER_