sl@0: /* libgplugin_b.c - test plugin for testgmodule sl@0: * Copyright (C) 1998 Tim Janik sl@0: * Portion Copyright © 2008-09 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. sl@0: * This library is free software; you can redistribute it and/or sl@0: * modify it under the terms of the GNU Lesser General Public sl@0: * License as published by the Free Software Foundation; either sl@0: * version 2 of the License, or (at your option) any later version. sl@0: * sl@0: * This library is distributed in the hope that it will be useful, sl@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of sl@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU sl@0: * Lesser General Public License for more details. sl@0: * sl@0: * You should have received a copy of the GNU Lesser General Public sl@0: * License along with this library; if not, write to the sl@0: * Free Software Foundation, Inc., 59 Temple Place - Suite 330, sl@0: * Boston, MA 02111-1307, USA. sl@0: */ sl@0: sl@0: /* sl@0: * Modified by the GLib Team and others 1997-2000. See the AUTHORS sl@0: * file for a list of people on the GLib Team. See the ChangeLog sl@0: * files for a list of changes. These files are distributed with sl@0: * GLib at ftp://ftp.gtk.org/pub/gtk/. sl@0: */ sl@0: sl@0: #undef G_DISABLE_ASSERT sl@0: #undef G_LOG_DOMAIN sl@0: sl@0: #include sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: G_MODULE_EXPORT gchar* gplugin_b_state = NULL; sl@0: #else sl@0: G_MODULE_EXPORT gchar* gplugin_b_state; sl@0: #endif sl@0: sl@0: G_MODULE_EXPORT const gchar* sl@0: g_module_check_init (GModule *module) sl@0: { sl@0: gplugin_b_state = "check-init"; sl@0: sl@0: return NULL; sl@0: } sl@0: sl@0: G_MODULE_EXPORT void sl@0: g_module_unload (GModule *module) sl@0: { sl@0: gplugin_b_state = "unloaded"; sl@0: } sl@0: sl@0: G_MODULE_EXPORT void sl@0: gplugin_b_func (void) sl@0: { sl@0: gplugin_b_state = "Hello world"; sl@0: } sl@0: sl@0: G_MODULE_EXPORT void sl@0: gplugin_clash_func (void) sl@0: { sl@0: gplugin_b_state = "plugin clash"; sl@0: } sl@0: sl@0: G_MODULE_EXPORT void sl@0: g_clash_func (void) sl@0: { sl@0: gplugin_b_state = "global clash"; sl@0: } sl@0: sl@0: G_MODULE_EXPORT void sl@0: gplugin_say_boo_func (void) sl@0: { sl@0: gplugin_b_state = "BOOH"; sl@0: }