52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/**
* @brief Creates a new OFPlugin by loading the plugin with the specified path.
*
* @param path The path to the plugin file. The suffix is appended
* automatically.
* @return An new, autoreleased OFPlugin
*/
+ (instancetype)pluginWithPath: (OFString *)path;
/**
* @brief Initializes an already allocated OFPlugin by loading the plugin with
* the specified path.
*
* @param path The path to the plugin file. The suffix is appended
* automatically.
* @return An initialized OFPlugin
*/
- (instancetype)initWithPath: (OFString *)path;
/**
* @brief Returns the address for the specified symbol, or `nil` if not found.
*
* @param symbol The symbol to return the address for
* @return The address for the speccified symbol, or `nil` if not found
*/
- (nullable void *)addressForSymbol: (OFString *)symbol;
@end
OF_ASSUME_NONNULL_END
|
>
>
|
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/**
* @brief Creates a new OFPlugin by loading the plugin with the specified path.
*
* @param path The path to the plugin file. The suffix is appended
* automatically.
* @return An new, autoreleased OFPlugin
* @throw OFLoadPluginFailedException The plugin could not be loaded
*/
+ (instancetype)pluginWithPath: (OFString *)path;
/**
* @brief Initializes an already allocated OFPlugin by loading the plugin with
* the specified path.
*
* @param path The path to the plugin file. The suffix is appended
* automatically.
* @return An initialized OFPlugin
* @throw OFLoadPluginFailedException The plugin could not be loaded
*/
- (instancetype)initWithPath: (OFString *)path;
/**
* @brief Returns the address for the specified symbol, or `nil` if not found.
*
* @param symbol The symbol to return the address for
* @return The address for the speccified symbol, or `nil` if not found
*/
- (nullable void *)addressForSymbol: (OFString *)symbol;
@end
OF_ASSUME_NONNULL_END
|