00001 /***************************** License ********************************** 00002 00003 Copyright (C) 2008 by Communicative Machines 00004 http://www.cmlabs.com All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 ************************************************************************/ 00021 00022 00023 #include "Messenger.h" 00024 00025 #ifndef _DLL_H_ 00026 #define _DLL_H_ 00027 00028 #ifdef WIN32 00029 #include <windows.h> 00030 #define DLLHandle HINSTANCE 00031 #else // WIN32 00032 #ifdef Darwin 00033 #include "dlfcn_darwin.h" 00034 #else 00035 #include <dlfcn.h> 00036 #endif 00037 #define DLLHandle void* 00038 #endif // WIN32 00039 00040 // ****** Here goes the dll function declarations ****** 00041 00042 namespace cmlabs { 00043 00044 // typedef int (* DLLFunction)(ObjectCollection* inputMessages, ObjectDictionary* parameters, ObjectDictionary* mediaConnections, ObjectCollection* outputMessages); 00045 typedef int (* DLLFunction)(Messenger* messenger); 00046 typedef int (* DLLUnitTestFunction)(ObjectCollection* col); 00047 typedef char* (* DLLCheckFunction)(); 00048 00049 } // namespace cmlabs 00050 00051 // ***************************************************** 00052 00053 #endif // _DLL_H_