| Comment: | Always have retain / copy before nonatomic |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
9db36c14b564b42d1b59a4ae33226720 |
| User & Date: | js on 2017-08-11 22:26:55 |
| Other Links: | manifest | tags |
|
2017-08-11
| ||
| 22:38 | ofzip: Fix compilation with GCC (check-in: 233e1b4284 user: js tags: trunk) | |
| 22:26 | Always have retain / copy before nonatomic (check-in: 9db36c14b5 user: js tags: trunk) | |
| 22:15 | Fix compilation with GCC (check-in: 327ce49bc3 user: js tags: trunk) | |
Modified src/OFHTTPCookie.h from [b3a1f16ba1] to [1ab11f1361].
| ︙ | ︙ | |||
37 38 39 40 41 42 43 | bool _secure, _HTTPOnly; OFMutableArray OF_GENERIC(OFString *) *_extensions; } /*! * The name of the cookie. */ | | | | | | | 37 38 39 40 41 42 43 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 | bool _secure, _HTTPOnly; OFMutableArray OF_GENERIC(OFString *) *_extensions; } /*! * The name of the cookie. */ @property (copy, nonatomic) OFString *name; /*! * The value of the cookie. */ @property (copy, nonatomic) OFString *value; /*! * The domain for the cookie. */ @property (copy, nonatomic) OFString *domain; /*! * The path for the cookie. */ @property (copy, nonatomic) OFString *path; /*! * The date when the cookie expires. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFDate *expires; /*! * Whether the cookie is only to be used with HTTPS. */ @property (nonatomic, getter=isSecure) bool secure; /*! |
| ︙ | ︙ |
Modified src/OFHTTPRequest.h from [c4ecec1316] to [0124cf01e3].
| ︙ | ︙ | |||
75 76 77 78 79 80 81 | OFData *_body; OFString *_remoteAddress; } /*! * The URL of the HTTP request. */ | | | | | | 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 110 |
OFData *_body;
OFString *_remoteAddress;
}
/*!
* The URL of the HTTP request.
*/
@property (copy, nonatomic) OFURL *URL;
/*!
* The request method of the HTTP request.
*/
@property (nonatomic) of_http_request_method_t method;
/*!
* The headers for the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFDictionary OF_GENERIC(OFString *, OFString *) *headers;
/*!
* The entity body of the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFData *body;
/*!
* The remote address from which the request originates.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *remoteAddress;
/*!
* @brief Creates a new OFHTTPRequest.
*
* @return A new, autoreleased OFHTTPRequest
*/
+ (instancetype)request;
|
| ︙ | ︙ |
Modified src/OFHTTPResponse.h from [96ba448907] to [223253c35b].
| ︙ | ︙ | |||
38 39 40 41 42 43 44 | * The status code of the reply to the HTTP request. */ @property (nonatomic) short statusCode; /*! * The headers of the reply to the HTTP request. */ | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
* The status code of the reply to the HTTP request.
*/
@property (nonatomic) short statusCode;
/*!
* The headers of the reply to the HTTP request.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFDictionary OF_GENERIC(OFString *, OFString *) *headers;
/*!
* @brief Sets the protocol version of the HTTP request reply.
*
* @param protocolVersion The protocol version of the HTTP request reply
*/
|
| ︙ | ︙ |
Modified src/OFHTTPServer.h from [6f778fd782] to [4a1a4ca81a].
| ︙ | ︙ | |||
94 95 96 97 98 99 100 | OFString *_name; OFTCPSocket *_listeningSocket; } /*! * The host on which the HTTP server will listen. */ | | | | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
OFString *_name;
OFTCPSocket *_listeningSocket;
}
/*!
* The host on which the HTTP server will listen.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *host;
/*!
* The port on which the HTTP server will listen.
*/
@property (nonatomic) uint16_t port;
/*!
* The delegate for the HTTP server.
*/
@property OF_NULLABLE_PROPERTY (nonatomic, assign)
id <OFHTTPServerDelegate> delegate;
/*!
* The server name the server presents to clients.
*
* Setting it to `nil` means no `Server` header will be sent, unless one is
* specified in the response headers.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *name;
/*!
* @brief Creates a new HTTP server.
*
* @return A new HTTP server
*/
+ (instancetype)server;
|
| ︙ | ︙ |
Modified src/OFINICategory.h from [9e0b1efe51] to [34c49be172].
| ︙ | ︙ | |||
32 33 34 35 36 37 38 | OFString *_name; OFMutableArray *_lines; } /*! * The name of the INI category */ | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | OFString *_name; OFMutableArray *_lines; } /*! * The name of the INI category */ @property (copy, nonatomic) OFString *name; - init OF_UNAVAILABLE; /*! * @brief Returns the string value for the specified key, or `nil` if it does * not exist. * |
| ︙ | ︙ |
Modified src/OFLocking.h from [ff0c964b4c] to [9a0e98f204].
| ︙ | ︙ | |||
23 24 25 26 27 28 29 | * * @brief A protocol for locks. */ @protocol OFLocking <OFObject> /*! * The name of the lock. */ | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | * * @brief A protocol for locks. */ @protocol OFLocking <OFObject> /*! * The name of the lock. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *name; /*! * @brief Locks the lock. */ - (void)lock; /*! |
| ︙ | ︙ |
Modified src/OFMutableTarArchiveEntry.h from [8b78b2c597] to [05ac9802be].
| ︙ | ︙ | |||
25 26 27 28 29 30 31 | * @brief A class which represents a mutable entry of a tar archive. */ @interface OFMutableTarArchiveEntry: OFTarArchiveEntry /*! * The file name of the entry. */ | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | * @brief A class which represents a mutable entry of a tar archive. */ @interface OFMutableTarArchiveEntry: OFTarArchiveEntry /*! * The file name of the entry. */ @property (readwrite, copy, nonatomic) OFString *fileName; /*! * The mode of the entry. */ @property (readwrite, nonatomic) uint16_t mode; /*! |
| ︙ | ︙ | |||
50 51 52 53 54 55 56 | * The size of the file. */ @property (readwrite, nonatomic) uint64_t size; /*! * The date of the last modification of the file. */ | | | | | | 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 75 76 77 78 79 80 81 82 83 84 85 86 87 |
* The size of the file.
*/
@property (readwrite, nonatomic) uint64_t size;
/*!
* The date of the last modification of the file.
*/
@property (readwrite, retain, nonatomic) OFDate *modificationDate;
/*!
* The type of the archive entry.
*
* See @ref of_tar_archive_entry_type_t.
*/
@property (readwrite, nonatomic) of_tar_archive_entry_type_t type;
/*!
* The file name of the target (for a hard link or symbolic link).
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
OFString *targetFileName;
/*!
* The owner of the file.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *owner;
/*!
* The group of the file.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *group;
/*!
* The device major (if the file is a device).
*/
@property (readwrite, nonatomic) uint32_t deviceMajor;
/*!
|
| ︙ | ︙ |
Modified src/OFMutableURL.h from [bdc8d2dd1d] to [8fd67661ad].
| ︙ | ︙ | |||
23 24 25 26 27 28 29 | * * @brief A class for parsing URLs and accessing parts of it. */ @interface OFMutableURL: OFURL /*! * The scheme part of the URL. */ | | | | | | | | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 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 75 76 77 78 |
*
* @brief A class for parsing URLs and accessing parts of it.
*/
@interface OFMutableURL: OFURL
/*!
* The scheme part of the URL.
*/
@property (readwrite, copy, nonatomic) OFString *scheme;
/*!
* The host part of the URL.
*/
@property (readwrite, copy, nonatomic) OFString *host;
/*!
* The port part of the URL.
*/
@property (readwrite, nonatomic) uint16_t port;
/*!
* The user part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *user;
/*!
* The password part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *password;
/*!
* The path part of the URL.
*/
@property (readwrite, copy, nonatomic) OFString *path;
/*!
* The parameters part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
OFString *parameters;
/*!
* The query part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *query;
/*!
* The fragment part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *fragment;
/*!
* @brief Creates a new mutable URL.
*
* @return A new, autoreleased OFMutableURL
*/
+ (instancetype)URL;
|
| ︙ | ︙ |
Modified src/OFMutableZIPArchiveEntry.h from [4a738fdf41] to [d647c5d768].
| ︙ | ︙ | |||
26 27 28 29 30 31 32 | * a ZIP archive. */ @interface OFMutableZIPArchiveEntry: OFZIPArchiveEntry /*! * The file name of the entry. */ | | | | | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
* a ZIP archive.
*/
@interface OFMutableZIPArchiveEntry: OFZIPArchiveEntry
/*!
* The file name of the entry.
*/
@property (readwrite, copy, nonatomic) OFString *fileName;
/*!
* The comment of the entry's file.
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
OFString *fileComment;
/*!
* The extra field of the entry.
*
* The item size *must* be 1!
*/
@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFData *extraField;
/*!
* The version which made the entry.
*
* The lower 8 bits are the ZIP specification version.@n
* The upper 8 bits are the attribute compatibility.
* See @ref of_zip_archive_entry_attribute_compatibility.
|
| ︙ | ︙ | |||
64 65 66 67 68 69 70 | @property (readwrite, nonatomic) uint16_t minVersionNeeded; /*! * The last modification date of the entry's file. * * @note Due to limitations of the ZIP format, this has only 2 second precision. */ | | | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | @property (readwrite, nonatomic) uint16_t minVersionNeeded; /*! * The last modification date of the entry's file. * * @note Due to limitations of the ZIP format, this has only 2 second precision. */ @property (readwrite, retain, nonatomic) OFDate *modificationDate; /*! * The compression method of the entry. * * Supported values are: * Value | Description * --------------------------------------------------|--------------- |
| ︙ | ︙ |
Modified src/OFTCPSocket.h from [0d4361b9a8] to [fe4d222a18].
| ︙ | ︙ | |||
69 70 71 72 73 74 75 | uint16_t _port; #endif } /*! * The host to use as a SOCKS5 proxy. */ | | | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | uint16_t _port; #endif } /*! * The host to use as a SOCKS5 proxy. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *SOCKS5Host; /*! * The port to use on the SOCKS5 proxy. */ @property (nonatomic) uint16_t SOCKS5Port; /*! |
| ︙ | ︙ |
Modified src/OFTLSSocket.h from [ec9c77b08c] to [d2aa75bc01].
| ︙ | ︙ | |||
59 60 61 62 63 64 65 |
*/
@property OF_NULLABLE_PROPERTY (nonatomic, assign)
id <OFTLSSocketDelegate> delegate;
/*!
* The path to the X.509 certificate file to use.
*/
| | | | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
*/
@property OF_NULLABLE_PROPERTY (nonatomic, assign)
id <OFTLSSocketDelegate> delegate;
/*!
* The path to the X.509 certificate file to use.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *certificateFile;
/*!
* The path to the PKCS#8 private key file to use.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *privateKeyFile;
/*!
* The passphrase to decrypt the PKCS#8 private key file.
*
* @warning You have to ensure that this is in secure memory protected from
* swapping! This is also the reason why this is not an OFString.
*/
|
| ︙ | ︙ |
Modified src/OFTarArchiveEntry.h from [efae6bf13b] to [714dfd0d2d].
| ︙ | ︙ | |||
59 60 61 62 63 64 65 | OFString *_owner, *_group; uint32_t _deviceMajor, _deviceMinor; } /*! * The file name of the entry. */ | | | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | OFString *_owner, *_group; uint32_t _deviceMajor, _deviceMinor; } /*! * The file name of the entry. */ @property (readonly, copy, nonatomic) OFString *fileName; /*! * The mode of the entry. */ @property (readonly, nonatomic) uint16_t mode; /*! |
| ︙ | ︙ | |||
84 85 86 87 88 89 90 | * The size of the file. */ @property (readonly, nonatomic) uint64_t size; /*! * The date of the last modification of the file. */ | | | | | | 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 110 111 112 113 114 115 116 117 118 119 120 121 |
* The size of the file.
*/
@property (readonly, nonatomic) uint64_t size;
/*!
* The date of the last modification of the file.
*/
@property (readonly, retain, nonatomic) OFDate *modificationDate;
/*!
* The type of the archive entry.
*
* See @ref of_tar_archive_entry_type_t.
*/
@property (readonly, nonatomic) of_tar_archive_entry_type_t type;
/*!
* The file name of the target (for a hard link or symbolic link).
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *targetFileName;
/*!
* The owner of the file.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *owner;
/*!
* The group of the file.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *group;
/*!
* The device major (if the file is a device).
*/
@property (readonly, nonatomic) uint32_t deviceMajor;
/*!
|
| ︙ | ︙ |
Modified src/OFTimer+Private.h from [315f62b4c1] to [e0515c7a8d].
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | */ #import "OFTimer.h" OF_ASSUME_NONNULL_BEGIN @interface OFTimer () | | | 15 16 17 18 19 20 21 22 23 24 25 26 |
*/
#import "OFTimer.h"
OF_ASSUME_NONNULL_BEGIN
@interface OFTimer ()
@property OF_NULLABLE_PROPERTY (retain, nonatomic, setter=of_setInRunLoop:)
OFRunLoop *of_inRunLoop;
@end
OF_ASSUME_NONNULL_END
|
Modified src/OFURL.h from [94ac818021] to [fe07110d1a].
| ︙ | ︙ | |||
32 33 34 35 36 37 38 | uint16_t _port; OFString *_user, *_password, *_path, *_parameters, *_query, *_fragment; } /*! * The scheme part of the URL. */ | | | | | | | | | | 32 33 34 35 36 37 38 39 40 41 42 43 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 75 76 77 78 79 80 81 82 83 84 85 86 | uint16_t _port; OFString *_user, *_password, *_path, *_parameters, *_query, *_fragment; } /*! * The scheme part of the URL. */ @property (readonly, copy, nonatomic) OFString *scheme; /*! * The host part of the URL. */ @property (readonly, copy, nonatomic) OFString *host; /*! * The port part of the URL. */ @property (readonly, nonatomic) uint16_t port; /*! * The user part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *user; /*! * The password part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *password; /*! * The path part of the URL. */ @property (readonly, copy, nonatomic) OFString *path; /*! * The parameters part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *parameters; /*! * The query part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *query; /*! * The fragment part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *fragment; /*! * @brief Creates a new URL with the specified string. * * @param string A string describing a URL * @return A new, autoreleased OFURL */ |
| ︙ | ︙ |
Modified src/OFXMLElement.h from [2f9d064e3a] to [ae0081e467].
| ︙ | ︙ | |||
37 38 39 40 41 42 43 | OFMutableDictionary OF_GENERIC(OFString *, OFString *) *_namespaces; OFMutableArray OF_GENERIC(OFXMLNode *) *_children; } /*! * The name of the element. */ | | | | | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
OFMutableDictionary OF_GENERIC(OFString *, OFString *) *_namespaces;
OFMutableArray OF_GENERIC(OFXMLNode *) *_children;
}
/*!
* The name of the element.
*/
@property (copy, nonatomic) OFString *name;
/*!
* The namespace of the element.
*/
#ifndef __cplusplus
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *namespace;
#else
@property OF_NULLABLE_PROPERTY (copy, nonatomic,
getter=namespace, setter=setNamespace:) OFString *namespace_;
#endif
/*!
* The default namespace for the element to be used if there is no parent.
*/
@property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *defaultNamespace;
/*!
* @brief Creates a new XML element with the specified name.
*
* @param name The name for the element
* @return A new autoreleased OFXMLElement with the specified element name
*/
|
| ︙ | ︙ |
Modified src/OFZIPArchive.h from [d9e0114a00] to [0c8af20565].
| ︙ | ︙ | |||
49 50 51 52 53 54 55 | *_pathToEntryMap; OFStream *_lastReturnedStream; } /*! * The archive comment. */ | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | *_pathToEntryMap; OFStream *_lastReturnedStream; } /*! * The archive comment. */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *archiveComment; /*! * @brief Creates a new OFZIPArchive object with the specified stream. * * @param stream A stream from which the ZIP archive will be read. * For read and append mode, this needs to be an OFSeekableStream. * @param mode The mode for the ZIP file. Valid modes are "r" for reading, |
| ︙ | ︙ |
Modified src/OFZIPArchiveEntry.h from [041b085f1d] to [3a97414732].
| ︙ | ︙ | |||
102 103 104 105 106 107 108 | uint32_t _versionSpecificAttributes; int64_t _localFileHeaderOffset; } /*! * The file name of the entry. */ | | | | | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
uint32_t _versionSpecificAttributes;
int64_t _localFileHeaderOffset;
}
/*!
* The file name of the entry.
*/
@property (readonly, copy, nonatomic) OFString *fileName;
/*!
* The comment of the entry's file.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *fileComment;
/*!
* The extra field of the entry.
*
* The item size *must* be 1!
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFData *extraField;
/*!
* The version which made the entry.
*
* The lower 8 bits are the ZIP specification version.@n
* The upper 8 bits are the attribute compatibility.
* See @ref of_zip_archive_entry_attribute_compatibility.
|
| ︙ | ︙ | |||
140 141 142 143 144 145 146 | @property (readonly, nonatomic) uint16_t minVersionNeeded; /*! * The last modification date of the entry's file. * * @note Due to limitations of the ZIP format, this has only 2 second precision. */ | | | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | @property (readonly, nonatomic) uint16_t minVersionNeeded; /*! * The last modification date of the entry's file. * * @note Due to limitations of the ZIP format, this has only 2 second precision. */ @property (readonly, retain, nonatomic) OFDate *modificationDate; /*! * The compression method of the entry. * * Supported values are: * Value | Description * --------------------------------------------------|--------------- |
| ︙ | ︙ |