| 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright 1998-2002 Tim Janik, Red Hat, Inc., and others. |
| 3 | * Copyright (C) 2003 Alex Graveley |
| 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 |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but 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, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef __GTK_MODULES_H__ |
| 20 | #define __GTK_MODULES_H__ |
| 21 | |
| 22 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
| 23 | #error "Only <gtk/gtk.h> can be included directly." |
| 24 | #endif |
| 25 | |
| 26 | #include <gdk/gdk.h> |
| 27 | |
| 28 | G_BEGIN_DECLS |
| 29 | |
| 30 | /** |
| 31 | * GtkModuleInitFunc: |
| 32 | * @argc: (allow-none): GTK+ always passes %NULL for this argument |
| 33 | * @argv: (allow-none) (array length=argc): GTK+ always passes %NULL for this argument |
| 34 | * |
| 35 | * Each GTK+ module must have a function gtk_module_init() with this prototype. |
| 36 | * This function is called after loading the module. |
| 37 | */ |
| 38 | typedef void (*GtkModuleInitFunc) (gint *argc, |
| 39 | gchar ***argv); |
| 40 | |
| 41 | /** |
| 42 | * GtkModuleDisplayInitFunc: |
| 43 | * @display: an open #GdkDisplay |
| 44 | * |
| 45 | * A multihead-aware GTK+ module may have a gtk_module_display_init() function |
| 46 | * with this prototype. GTK+ calls this function for each opened display. |
| 47 | * |
| 48 | * Since: 2.2 |
| 49 | */ |
| 50 | typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); |
| 51 | |
| 52 | |
| 53 | G_END_DECLS |
| 54 | |
| 55 | |
| 56 | #endif /* __GTK_MODULES_H__ */ |
| 57 | |