#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <glib.h>
#include <gmodule.h>
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_path.h"
#include "ut_string.h"
#include "xap_App.h"
#include "xap_CocoaAppController.h"
#include "xap_CocoaModule.h"
#include "xap_CocoaPlugin.h"
#include "xap_ModuleManager.h"
Functions | |
static int | s_Abi_only (const struct dirent *d) |
return > 0 for directory entries ending in ".so" | |
static bool | s_dir_exists (const char *dirname) |
return true if dirname exists and is a directory; symlinks probably not counted | |
static bool | s_createDirectoryIfNecessary (const char *szDir, bool publicdir=false) |
static void | createSystemPluginsDirectory (void) |
static void createSystemPluginsDirectory | ( | void | ) | [static] |
References s_createDirectoryIfNecessary().
Referenced by XAP_CocoaModule::loadAllPlugins().
static int s_Abi_only | ( | const struct dirent * | d | ) | [static] |
return > 0 for directory entries ending in ".so"
References XAP_CocoaModule::hasPluginExtension().
Referenced by XAP_CocoaModule::loadAllPlugins().
static bool s_createDirectoryIfNecessary | ( | const char * | szDir, | |
bool | publicdir = false | |||
) | [static] |
Creates a directory if the specified one does not yet exist. /param A character string representing the to-be-created directory. /return True, if the directory already existed, or was successfully created. False, if the input path was already a file, not a directory, or if the directory was unable to be created.
References UT_DEBUGMSG.
Referenced by createSystemPluginsDirectory(), and XAP_CocoaModule::loadAllPlugins().
static bool s_dir_exists | ( | const char * | dirname | ) | [static] |
return true if dirname exists and is a directory; symlinks probably not counted
Referenced by XAP_CocoaModule::loadAllPlugins().