Chris Masone | c1e5041 | 2011-06-07 13:04:53 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
Paul Stewart | 25379f1 | 2011-05-26 06:41:38 -0700 | [diff] [blame] | 2 | // 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 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class 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_ |