images/plugin_impl/export_impl.cpp

Go to the documentation of this file.
00001 /*
00002  * File Name: export_impl.cpp
00003  */
00004 
00005 /*
00006  * This file is part of uds-plugin-images.
00007  *
00008  * uds-plugin-images is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * uds-plugin-images is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 /**
00023  * Copyright (C) 2008 iRex Technologies B.V.
00024  * All rights reserved.
00025  */
00026 
00027 #include <cassert>
00028 #include "export_impl.h"
00029 #include "library_impl.h"
00030 #ifndef WIN32
00031 #include "config.h"
00032 #endif
00033 
00034 /// @brief Return the highest API version this plugin supports.
00035 const char* get_version() 
00036 {
00037    // VERSION is automatically defined in config.h from the version 
00038     // number in configure.ac
00039     return VERSION;
00040 }
00041 
00042 /// @brief Create a new plugin library instance and return
00043 /// the IPluginUnknown interface of the instance.
00044 /// Currently, this function is not allowed to be called twice.
00045 IPluginUnknown* create_plugin_library()
00046 {
00047     using namespace images;
00048     static PluginLibraryImpl * library;
00049     if (library == NULL)
00050     {
00051         library = new PluginLibraryImpl;
00052         return static_cast<IPluginUnknown *>(library);
00053     }
00054     assert(false);
00055     return 0;
00056 }
00057 
Generated by  doxygen 1.6.2-20100208