/src/wrappers/glib/library/externals/glib-callbacks.h
C++ Header | 35 lines | 10 code | 6 blank | 19 comment | 0 complexity | 6c2cfc678edb63b9b54b720f91c1b49c MD5 | raw file
1/* Eiffel callbacks for the Glib library 2 3 * Copyright 2007, Paolo Redaelli, EWLC team 4 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public License 7 * as published by the Free Software Foundation; either version 2 of 8 * the License, or (at your option) any later version. 9 10 * This library is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 18 * 02111-1307, USA. 19 */ 20 21#ifndef _GLIB_CALLBACKS_H 22#define _GLIB_CALLBACKS_H 23 24#include <glib.h> 25 26struct GIOFuncClosure { 27 void *target; 28 gboolean (*callback)(void *, GIOChannel *, GIOCondition); 29}; 30 31gboolean g_io_func_closure_invoke (GIOChannel *source, GIOCondition condition, gpointer data); 32 33int EiffelGCompareDataFunc (void *a, void *b, void *user_data); 34 35#endif