28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#define dlclose(handle) FreeLibrary(handle)
#endif
@implementation OFPlugin
+ pluginFromFile: (OFString*)path
{
OFAutoreleasePool *pool;
OFString *file;
of_plugin_handle_t handle;
OFPlugin *(*init_plugin)();
OFPlugin *plugin;
pool = [[OFAutoreleasePool alloc] init];
file = [OFMutableString stringWithString: path];
[file appendCString: PLUGIN_SUFFIX];
|
|
|
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#define dlclose(handle) FreeLibrary(handle)
#endif
@implementation OFPlugin
+ pluginFromFile: (OFString*)path
{
OFAutoreleasePool *pool;
OFMutableString *file;
of_plugin_handle_t handle;
OFPlugin *(*init_plugin)();
OFPlugin *plugin;
pool = [[OFAutoreleasePool alloc] init];
file = [OFMutableString stringWithString: path];
[file appendCString: PLUGIN_SUFFIX];
|