util/format: Add VK_FORMAT_D16_UNORM_S8_UINT.
[mesa.git] / src / util / os_file.h
index 58639476f60a42645430abc66da7d7f2dae82983..36f367ea3588b15f603c50779ea39b7641bc6d9c 100644 (file)
@@ -27,9 +27,11 @@ os_file_create_unique(const char *filename, int filemode);
 /*
  * Read a file.
  * Returns a char* that the caller must free(), or NULL and sets errno.
+ * If size is not null and no error occured it's set to the size of the
+ * file.
  */
 char *
-os_read_file(const char *filename);
+os_read_file(const char *filename, size_t *size);
 
 /*
  * Try to determine if two file descriptors reference the same file description