@@ -13,12 +13,11 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" - -@class OFString; +#import "OFString.h" /*! * @class OFSystemInfo OFSystemInfo.h ObjFW/OFSystemInfo.h * * @brief A class for querying information about the system. @@ -38,10 +37,20 @@ * * @return The number of CPUs installed in the system */ + (size_t)numberOfCPUs; +/*! + * @brief Returns the native 8-bit string encoding of the operating system. + * + * This is useful to encode strings correctly for passing them to operating + * system calls. + * + * @return The native 8-bit string encoding of the operating system + */ ++ (of_string_encoding_t)native8BitEncoding; + /*! * @brief Returns the path where user data for the application can be stored. * * On Unix systems, this adheres to the XDG Base Directory specification.@n * On Mac OS X and iOS, it uses the `NSApplicationSupportDirectory` directory.@n