| Index: ppapi/c/ppb_mojo.h
|
| diff --git a/ppapi/c/ppb_mojo.h b/ppapi/c/ppb_mojo.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1cfba182053957e522444fc56efe77e8dcc55676
|
| --- /dev/null
|
| +++ b/ppapi/c/ppb_mojo.h
|
| @@ -0,0 +1,47 @@
|
| +/* Copyright (c) 2014 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 ppb_mojo.idl modified Wed Sep 24 14:54:16 2014. */
|
| +
|
| +#ifndef PPAPI_C_PPB_MOJO_H_
|
| +#define PPAPI_C_PPB_MOJO_H_
|
| +
|
| +#include "ppapi/c/pp_completion_callback.h"
|
| +#include "ppapi/c/pp_instance.h"
|
| +#include "ppapi/c/pp_macros.h"
|
| +#include "ppapi/c/pp_stdint.h"
|
| +
|
| +#define PPB_MOJO_INTERFACE_0_1 "PPB_Mojo;0.1"
|
| +#define PPB_MOJO_INTERFACE PPB_MOJO_INTERFACE_0_1
|
| +
|
| +/**
|
| + * @file
|
| + */
|
| +
|
| +
|
| +/**
|
| + * @addtogroup Interfaces
|
| + * @{
|
| + */
|
| +/* An interface to expose Mojo services to pepper plugins. */
|
| +struct PPB_Mojo_0_1 {
|
| + /*
|
| + * Connects to the given service_name, and provides a mojo_handle on success.
|
| + *
|
| + * TODO(teravest): It'd be nice to use something more typesafe than int32_t
|
| + * here.
|
| + */
|
| + int32_t (*GetHandle)(PP_Instance instance,
|
| + uint32_t* mojo_handle,
|
| + struct PP_CompletionCallback callback);
|
| +};
|
| +
|
| +typedef struct PPB_Mojo_0_1 PPB_Mojo;
|
| +/**
|
| + * @}
|
| + */
|
| +
|
| +#endif /* PPAPI_C_PPB_MOJO_H_ */
|
| +
|
|
|