rainmeter-studio/Library/Export.h

47 lines
1.3 KiB
C
Raw Normal View History

2009-02-10 18:37:48 +00:00
/*
2011-12-30 17:18:34 +00:00
Copyright (C) 2004 Kimmo Pekkola
2009-02-10 18:37:48 +00:00
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __EXPORT_H__
#define __EXPORT_H__
#ifdef LIBRARY_EXPORTS
2011-12-30 17:18:34 +00:00
#define EXPORT_PLUGIN __declspec(dllexport)
2009-02-10 18:37:48 +00:00
#else
2011-12-30 17:18:34 +00:00
#define EXPORT_PLUGIN __declspec(dllimport)
#endif
2011-12-30 16:16:22 +00:00
2011-12-30 17:18:34 +00:00
// log level constants
#define LOG_ERROR 1
#define LOG_WARNING 2
#define LOG_NOTICE 3
#define LOG_DEBUG 4
2009-02-10 18:37:48 +00:00
#ifdef __cplusplus
2011-12-30 17:18:34 +00:00
extern "C"
2009-02-10 18:37:48 +00:00
{
2011-12-30 17:18:34 +00:00
#endif
2011-12-30 16:16:22 +00:00
2011-12-30 17:18:34 +00:00
EXPORT_PLUGIN BOOL LSLog(int nLevel, LPCTSTR pszModule, LPCTSTR pszMessage);
EXPORT_PLUGIN LPCTSTR ReadConfigString(LPCTSTR section, LPCTSTR key, LPCTSTR defValue);
EXPORT_PLUGIN LPCTSTR PluginBridge(LPCTSTR sCommand, LPCTSTR sData);
2011-12-30 16:16:22 +00:00
2011-12-30 17:18:34 +00:00
#ifdef __cplusplus
2011-12-30 16:16:22 +00:00
}
#endif
2011-12-30 17:18:34 +00:00
#endif