/src/wrappers/gtk/library/externals/plugin/c/callbacks.h

http://github.com/tybor/Liberty · C Header · 35 lines · 9 code · 2 blank · 24 comment · 0 complexity · 284cd6405351aaf90d5b9ed4bb574469 MD5 · raw file

  1. /*
  2. Author: Natalia B. Bidart
  3. Copyright (C) 2006 Soluciones Informaticas Libres S.A. (Except)
  4. Copyright (C) 2006 Paolo Redaelli
  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.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. */
  18. typedef struct {
  19. void *Current;
  20. int (*function)(void *C); /* This function signature is generic, for
  21. a parameter-less Eiffel feature. It
  22. will be cast to the correct signature
  23. by the C callback.
  24. */
  25. } CallbackClosure;
  26. int EiffelGtkTreeSelectionFunc (void *selection,
  27. void *model,
  28. void *path,
  29. int path_currently_selected,
  30. CallbackClosure *data);