/src/wrappers/glib/library/externals/glib-callbacks.h

http://github.com/tybor/Liberty · C Header · 35 lines · 10 code · 6 blank · 19 comment · 0 complexity · 6c2cfc678edb63b9b54b720f91c1b49c MD5 · raw file

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