Overview
Comment: | Add OFLoadPluginFailedException
OFOpenItemFailedException was too unspecific and only allowed an errno, |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4642bc76b09859550140f1563d899dfd |
User & Date: | js on 2018-02-09 00:00:22 |
Other Links: | manifest | tags |
Context
2018-02-09
| ||
00:05 | tests: Include runtime in DYLD_FRAMEWORK_PATH check-in: 9a7f4ee2d0 user: js tags: trunk | |
00:00 | Add OFLoadPluginFailedException check-in: 4642bc76b0 user: js tags: trunk | |
2018-02-08
| ||
23:42 | Add Info.plist for test plugin check-in: d1b626eaa2 user: js tags: trunk | |
Changes
Modified src/OFPlugin.h from [1423b35bee] to [14c7d1c65f].
︙ | |||
53 54 55 56 57 58 59 60 61 62 63 64 65 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | + | @end #ifdef __cplusplus extern "C" { #endif extern of_plugin_handle_t of_dlopen(OFString *path, int flags); extern void *of_dlsym(of_plugin_handle_t handle, const char *symbol); extern OFString *of_dlerror(void); extern void of_dlclose(of_plugin_handle_t handle); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |
Modified src/OFPlugin.m from [5d759baef8] to [fc21e7fba3].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + | #endif #import "OFPlugin.h" #import "OFString.h" #import "OFLocalization.h" #import "OFInitializationFailedException.h" |
︙ | |||
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | + + + + + + + + + + + + - + - - + | { #ifndef OF_WINDOWS dlclose(handle); #else FreeLibrary(handle); #endif } OFString * of_dlerror(void) { #ifndef OF_WINDOWS return [OFString stringWithCString: dlerror() encoding: [OFLocalization encoding]]; #else return nil; #endif } @implementation OFPlugin + (id)pluginFromFile: (OFString *)path { void *pool = objc_autoreleasePoolPush(); of_plugin_handle_t handle; init_plugin_t initPlugin; OFPlugin *plugin; #if defined(OF_MACOS) path = [path stringByAppendingFormat: @".bundle/Contents/MacOS/%@", [path lastPathComponent]]; #elif defined(OF_IOS) path = [path stringByAppendingFormat: @".bundle/%@", [path lastPathComponent]]; #else path = [path stringByAppendingString: @PLUGIN_SUFFIX]; #endif if ((handle = of_dlopen(path, OF_RTLD_LAZY)) == NULL) @throw [OFLoadPluginFailedException |
︙ |
Modified src/ObjFW.h from [3e34a3f2ec] to [01ae715851].
︙ | |||
151 152 153 154 155 156 157 158 159 160 161 162 163 164 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | + + + | #import "OFInvalidFormatException.h" #import "OFInvalidJSONException.h" #import "OFInvalidServerReplyException.h" #import "OFLinkFailedException.h" #ifdef OF_HAVE_SOCKETS # import "OFListenFailedException.h" #endif #ifdef OF_HAVE_PLUGINS # import "OFLoadPluginFailedException.h" #endif #import "OFLockFailedException.h" #import "OFMalformedXMLException.h" #import "OFMemoryNotPartOfObjectException.h" #import "OFMoveItemFailedException.h" #import "OFNotImplementedException.h" #import "OFNotOpenException.h" #ifdef OF_HAVE_SOCKETS |
︙ |
Modified src/exceptions/Makefile from [d57c4e5b68] to [72ca6fab0d].
︙ | |||
44 45 46 47 48 49 50 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | - + + + | OFUndefinedKeyException.m \ OFUnknownXMLEntityException.m \ OFUnlockFailedException.m \ OFUnsupportedProtocolException.m \ OFUnsupportedVersionException.m \ OFWriteFailedException.m \ ${USE_SRCS_SOCKETS} \ |
Added src/exceptions/OFLoadPluginFailedException.h version [9a856dae4b].
|
Added src/exceptions/OFLoadPluginFailedException.m version [6b608e83f6].
|