2 * Copyright (C) 2006, 2007 John Costigan.
4 * POI and GPS-Info code originally written by Cezary Jackiewicz.
6 * Default map data provided by http://www.openstreetmap.org/
8 * This file is part of Maemo Mapper.
10 * Maemo Mapper is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * Maemo Mapper is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Maemo Mapper. If not, see <http://www.gnu.org/licenses/>.
29 #include <glib-object.h>
34 g_cclosure_user_marshal_VOID__STRING_STRING_POINTER_UCHAR_UINT (GClosure *closure,
37 const GValue *param_values,
38 gpointer invocation_hint,
39 gpointer marshal_data)
41 typedef void (*GMarshalFunc_VOID__STRING_STRING_POINTER_UCHAR_UINT) (gpointer data1,
48 register GMarshalFunc_VOID__STRING_STRING_POINTER_UCHAR_UINT callback;
49 register GCClosure *cc = (GCClosure*) closure;
50 register gpointer data1, data2;
52 g_return_if_fail (n_param_values == 6);
54 if (G_CCLOSURE_SWAP_DATA (closure))
56 data1 = closure->data;
57 data2 = g_value_peek_pointer (param_values + 0);
61 data1 = g_value_peek_pointer (param_values + 0);
62 data2 = closure->data;
64 callback = (GMarshalFunc_VOID__STRING_STRING_POINTER_UCHAR_UINT) (marshal_data ? marshal_data : cc->callback);
67 g_marshal_value_peek_string (param_values + 1),
68 g_marshal_value_peek_string (param_values + 2),
69 g_marshal_value_peek_pointer (param_values + 3),
70 g_marshal_value_peek_uchar (param_values + 4),
71 g_marshal_value_peek_uint (param_values + 5),