PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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	
 6	This library is free software; you can redistribute it and/or
 7	modify it under the terms of the GNU Lesser General Public License
 8	as published by the Free Software Foundation; either version 2.1 of
 9	the License, or (at your option) any later version.
10					
11	This library is distributed in the hope that it will be useful, but
12	WITHOUT ANY WARRANTY; without even the implied warranty of
13	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14	Lesser General Public License for more details.
15
16	You should have received a copy of the GNU Lesser General Public
17	License along with this library; if not, write to the Free Software
18	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19	02110-1301 USA
20*/
21
22typedef struct {
23  void *Current;
24  int (*function)(void *C); /* This function signature is generic, for
25			       a parameter-less Eiffel feature. It
26			       will be cast to the correct signature
27			       by the C callback.
28			    */
29} CallbackClosure;
30
31int EiffelGtkTreeSelectionFunc (void *selection,
32                                void *model,
33                                void *path,
34                                int path_currently_selected,
35                                CallbackClosure *data);