/* -*- mode: C; c-file-style: "gnu" -*- */ /* dbus-watch_p.h DBusWatch private definitions * * Copyright (C) 2002, 2003 Red Hat Inc. * Copyright (C) 2007 Ralf Habacker * * Licensed under the Academic Free License version 2.1 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef DBUS_WATCH_P_H #define DBUS_WATCH_P_H #include "dbus-watch.h" /** * @defgroup DBusWatchInternals DBusWatch implementation details * @ingroup DBusInternals * @brief implementation details for DBusWatch * * @{ */ /** * Implementation of DBusWatch */ struct DBusWatch { int refcount; /**< Reference count */ int fd; /**< File descriptor. */ unsigned int flags; /**< Conditions to watch. */ DBusWatchHandler handler; /**< Watch handler. */ void *handler_data; /**< Watch handler data. */ DBusFreeFunction free_handler_data_function; /**< Free the watch handler data. */ void *data; /**< Application data. */ DBusFreeFunction free_data_function; /**< Free the application data. */ unsigned int enabled : 1; /**< Whether it's enabled. */ }; /** @} */ #endif /* DBUS_WATCH_P_H */