| ## Public API Reference

- Main Page
- Classes
- Files

# celtool/initapp.h

    00001 /*
    00002     Copyright (C) 2004 by Eric Sunshine
    00003
    00004     This library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License as published by the Free Software Foundation; either
    00007     version 2 of the License, or (at your option) any later version.
    00008
    00009     This library is distributed in the hope that it will be useful,
    00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012     Library General Public License for more details.
    00013
    00014     You should have received a copy of the GNU Library General Public
    00015     License along with this library; if not, write to the Free
    00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00017 */
    00018
    00019 #ifndef __CELTOOL_INITAPP_H__
    00020 #define __CELTOOL_INITAPP_H__
    00021
    00022 #include <cssysdef.h>
    00023 #include <cstool/initapp.h>
    00024
    00025 #ifndef CEL_DETECTED_PLUGIN_DIR
    00026 #  ifdef CEL_PLUGIN_DIR
    00027 #    define CEL_DETECTED_PLUGIN_DIR CEL_PLUGIN_DIR
    00028 #  else
    00029 #    define CEL_DETECTED_PLUGIN_DIR ((char const*)0)
    00030 #  endif
    00031 #endif
    00032
    00039 class celInitializer : public csInitializer
    00040 {
    00041 private:
    00042   typedef csInitializer superclass;
    00043
    00044 protected:
    00045   static void setup_plugin_dirs(iObjectRegistry*, char const* detected_dir);
    00046
    00047 public:
    00074   static void SetupCelPluginDirs(iObjectRegistry* r)
    00075   { setup_plugin_dirs(r, CEL_DETECTED_PLUGIN_DIR); }
    00076
    00087   static bool RequestPlugins(iObjectRegistry*, ...);
    00088
    00094   static bool RequestPluginsV (iObjectRegistry*, va_list);
    00095
    00115   static bool RequestPlugins(iObjectRegistry*,csArray<csPluginRequest> const&);
    00116 };
    00117
    00118 #endif // __CELTOOL_INITAPP_H__