Index: ppapi/c/dev/ppb_hello_dev.h |
diff --git a/ppapi/c/dev/ppb_hello_dev.h b/ppapi/c/dev/ppb_hello_dev.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fa81191611c533e0514c9ee7299fa2a275966704 |
--- /dev/null |
+++ b/ppapi/c/dev/ppb_hello_dev.h |
@@ -0,0 +1,84 @@ |
+/* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+/* From dev/ppb_hello_dev.idl modified Tue Nov 8 22:02:10 2011. */ |
+ |
+#ifndef PPAPI_C_DEV_PPB_HELLO_DEV_H_ |
+#define PPAPI_C_DEV_PPB_HELLO_DEV_H_ |
+ |
+#include "ppapi/c/pp_bool.h" |
+#include "ppapi/c/pp_completion_callback.h" |
+#include "ppapi/c/pp_instance.h" |
+#include "ppapi/c/pp_macros.h" |
+#include "ppapi/c/pp_resource.h" |
+#include "ppapi/c/pp_stdint.h" |
+ |
+#define PPB_HELLO_DEV_INTERFACE_0_1 "PPB_Hello(Dev);0.1" |
+#define PPB_HELLO_DEV_INTERFACE PPB_HELLO_DEV_INTERFACE_0_1 |
+ |
+/** |
+ * @file |
+ * This file define the sample Hello API. |
+ */ |
+ |
+ |
+/** |
+ * @addtogroup Interfaces |
+ * @{ |
+ */ |
+/** |
+ * The <code>PPB_Hello_Dev</code> struct. |
+ */ |
+struct PPB_Hello_Dev { |
+ /** |
+ * Create() creates a hello object. |
+ * |
+ * @param[in] instance A <code>PP_Hello_Dev</code> identifying the instance. |
+ * |
+ * @return A <code>PP_Resource</code> corresponding to a hello if successful. |
+ */ |
+ PP_Resource (*Create)(PP_Instance instance); |
+ /** |
+ * IsHello() determines if the provided resource is a hello. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a hello. |
+ * |
+ * @return <code>PP_TRUE</code> if the resource is a |
+ * <code>PPB_Hello_Dev</code>, <code>PP_FALSE</code> if the resource is |
+ * invalid or some type other than <code>PP_Hello_Dev</code>. |
+ */ |
+ PP_Bool (*IsHello)(PP_Resource resource); |
+ /** |
+ * SayHello() says hello. |
+ * |
+ * @param[in] instance A <code>PP_Resource</code> corresponding to a hello. |
+ * |
+ * @return Returns <code>PP_OK</code> on success or |
+ * <code>PP_Error_BadResource</code> if the hello is invalid. |
+ */ |
+ int32_t (*SayHello)(PP_Resource hello); |
+ /** |
+ * WhoAreYou() returns who execute this function. |
+ * |
+ * @param[in] instance A <code>PP_Resource</code> corresponding to a hello. |
+ * |
+ * @param[out] name A buffer to store the name who execute this function. |
+ * |
+ * @param[in] size The size of name buffer. |
+ * |
+ * @param[in] callback A <code>PP_CompletionCallback</code> which is invoked |
+ * when asynchronous request is completed. |
+ */ |
+ void (*WhoAreYou)(PP_Resource hello, |
+ char* name, |
+ uint32_t size, |
+ struct PP_CompletionCallback callback); |
+}; |
+/** |
+ * @} |
+ */ |
+ |
+#endif /* PPAPI_C_DEV_PPB_HELLO_DEV_H_ */ |
+ |