Differences From Artifact [b6c4c9f6e5]:
- File src/OFEmbeddedURIHandler.h — part of check-in [0e6774358c] at 2022-11-17 14:14:01 on branch trunk — Make OFRegisterEmbeddedFile() public (user: js, size: 1162) [annotate] [blame] [check-ins using] [more...]
To Artifact [c72607aa86]:
- File
src/OFEmbeddedURIHandler.h
— part of check-in
[722bb308e8]
at
2022-11-17 14:50:12
on branch trunk
— Fix embedded files with GCC
The load order is different with GCC, resulting in a crash when trying
to send a message, so -[retain] cannot be used in
OFRegisterEmbeddedFile(). (user: js, size: 1290) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
25 26 27 28 29 30 31 | #endif /** * @brief Register a file for the `embedded:` URI scheme. * * Usually, you should not use the directly, but rather generate a source file * for a file to be embedded using the `objfw-embed` tool. * | | > > | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #endif /** * @brief Register a file for the `embedded:` URI scheme. * * Usually, you should not use the directly, but rather generate a source file * for a file to be embedded using the `objfw-embed` tool. * * @param path The path to the file under the `embedded:` scheme. This is not * retained, so you must either pass a constant string or pass a * string that is already retained! * @param bytes The raw bytes for the file * @param size The size of the file */ extern void OFRegisterEmbeddedFile(OFString *path, const uint8_t *bytes, size_t size); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |