@@ -27,10 +27,13 @@ */ @interface OFSystemInfo: OFObject #ifdef OF_HAVE_CLASS_PROPERTIES @property (class, readonly, nonatomic) size_t pageSize; @property (class, readonly, nonatomic) size_t numberOfCPUs; +@property (class, readonly, nonatomic) OFString *ObjFWVersion; +@property (class, readonly, nonatomic) unsigned int ObjFWVersionMajor; +@property (class, readonly, nonatomic) unsigned int ObjFWVersionMinor; @property (class, readonly, nullable, nonatomic) OFString *operatingSystemName; @property (class, readonly, nullable, nonatomic) OFString *operatingSystemVersion; # ifdef OF_HAVE_FILES @property (class, readonly, nullable, nonatomic) OFString *userDataPath; @@ -67,10 +70,31 @@ * * @return The number of CPUs installed in the system */ + (size_t)numberOfCPUs; +/*! + * @brief The version of ObjFW. + * + * @return The version of ObjFW + */ ++ (OFString *)ObjFWVersion; + +/*! + * @brief The major version of ObjFW. + * + * @return The major version of ObjFW + */ ++ (unsigned int)ObjFWVersionMajor; + +/*! + * @brief The minor version of ObjFW. + * + * @return The minor version of ObjFW + */ ++ (unsigned int)ObjFWVersionMinor; + /** * @brief Returns the name of the operating system the application is running * on. * * @return The name of the operating system the application is running on