blob: e31ba12311d355c0267689b773fbf8f68bf5d834 [file] [log] [blame]
Chris Masonec1e50412011-06-07 13:04:53 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
Paul Stewart25379f12011-05-26 06:41:38 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_GLIB_IO_HANDLER_
6#define SHILL_GLIB_IO_HANDLER_
7
8#include <stdio.h>
9#include <glib.h>
10
11#include <base/callback_old.h>
12
13#include "shill/io_handler.h"
14
15namespace shill {
16
17class GlibIOInputHandler : public IOInputHandler {
18 public:
19 GIOChannel *channel_;
20 Callback1<InputData *>::Type *callback_;
21 guint source_id_;
22
23 GlibIOInputHandler(int fd, Callback1<InputData*>::Type *callback);
24 ~GlibIOInputHandler();
25};
26
27
28} // namespace shill
29
30#endif // SHILL_GLIB_IO_HANDLER_