Index: ppapi/c/ppb_directory_reader.h |
diff --git a/ppapi/c/dev/ppb_directory_reader_dev.h b/ppapi/c/ppb_directory_reader.h |
similarity index 56% |
rename from ppapi/c/dev/ppb_directory_reader_dev.h |
rename to ppapi/c/ppb_directory_reader.h |
index 060e489a5c5a970382fdef44cf4b42d1f5b60624..dd66a2fff23028c48e30017574d171fb231451d7 100644 |
--- a/ppapi/c/dev/ppb_directory_reader_dev.h |
+++ b/ppapi/c/ppb_directory_reader.h |
@@ -3,10 +3,10 @@ |
* found in the LICENSE file. |
*/ |
-/* From dev/ppb_directory_reader_dev.idl modified Fri Feb 15 16:46:46 2013. */ |
+/* From ppb_directory_reader.idl modified Wed Apr 24 10:32:14 2013. */ |
-#ifndef PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ |
-#define PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ |
+#ifndef PPAPI_C_PPB_DIRECTORY_READER_H_ |
+#define PPAPI_C_PPB_DIRECTORY_READER_H_ |
#include "ppapi/c/pp_array_output.h" |
#include "ppapi/c/pp_bool.h" |
@@ -16,13 +16,12 @@ |
#include "ppapi/c/pp_resource.h" |
#include "ppapi/c/pp_stdint.h" |
-#define PPB_DIRECTORYREADER_DEV_INTERFACE_0_6 "PPB_DirectoryReader(Dev);0.6" |
-#define PPB_DIRECTORYREADER_DEV_INTERFACE PPB_DIRECTORYREADER_DEV_INTERFACE_0_6 |
+#define PPB_DIRECTORYREADER_INTERFACE_1_0 "PPB_DirectoryReader;1.0" |
+#define PPB_DIRECTORYREADER_INTERFACE PPB_DIRECTORYREADER_INTERFACE_1_0 |
/** |
* @file |
- * |
- * This file defines the <code>PPB_DirectoryReader_Dev</code> interface. |
+ * This file defines the <code>PPB_DirectoryReader</code> interface. |
*/ |
@@ -30,11 +29,15 @@ |
* @addtogroup Structs |
* @{ |
*/ |
-struct PP_DirectoryEntry_Dev { |
+/** |
+ * The <code>PP_DirectoryEntry</code> struct represents information about a |
+ * directory entry. |
+ */ |
+struct PP_DirectoryEntry { |
PP_Resource file_ref; |
PP_FileType file_type; |
}; |
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 8); |
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry, 8); |
/** |
* @} |
*/ |
@@ -43,22 +46,31 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 8); |
* @addtogroup Interfaces |
* @{ |
*/ |
-struct PPB_DirectoryReader_Dev_0_6 { |
- /* Creates a DirectoryReader for the given directory. Upon success, the |
+/** |
+ * The <code>PPB_DirectoryReader</code> interface provides a function to read |
+ * entries in a directory. |
+ */ |
+struct PPB_DirectoryReader_1_0 { |
+ /** |
+ * Creates a DirectoryReader for the given directory. Upon success, the |
* corresponding directory is classified as "in use" by the resulting |
* DirectoryReader object until such time as the DirectoryReader object is |
- * destroyed. */ |
+ * destroyed. |
+ */ |
PP_Resource (*Create)(PP_Resource directory_ref); |
- /* Returns PP_TRUE if the given resource is a DirectoryReader. Returns |
+ /** |
+ * Returns PP_TRUE if the given resource is a DirectoryReader. Returns |
* PP_FALSE if the resource is invalid or some type other than a |
- * DirectoryReader. */ |
+ * DirectoryReader. |
+ */ |
PP_Bool (*IsDirectoryReader)(PP_Resource resource); |
- /* Reads all entries in the directory. |
+ /** |
+ * Reads all entries in the directory. |
* |
* @param[in] directory_reader A <code>PP_Resource</code> |
* corresponding to a directory reader resource. |
* @param[in] output An output array which will receive |
- * <code>PP_DirectoryEntry_Dev</code> objects on success. |
+ * <code>PP_DirectoryEntry</code> objects on success. |
* @param[in] callback A <code>PP_CompletionCallback</code> to run on |
* completion. |
* |
@@ -69,10 +81,10 @@ struct PPB_DirectoryReader_Dev_0_6 { |
struct PP_CompletionCallback callback); |
}; |
-typedef struct PPB_DirectoryReader_Dev_0_6 PPB_DirectoryReader_Dev; |
+typedef struct PPB_DirectoryReader_1_0 PPB_DirectoryReader; |
/** |
* @} |
*/ |
-#endif /* PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ */ |
+#endif /* PPAPI_C_PPB_DIRECTORY_READER_H_ */ |