[go: nahoru, domu]

blob: a46e18cdfa487ac5a06d9e0ac2e7875923d2b448 [file] [log] [blame]
Avi Drissmandb497b32022-09-15 19:47:281/* Copyright 2012 The Chromium Authors
neb@chromium.org2272ed32011-03-30 17:37:542 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
noelallen@google.com745b0d42011-07-16 23:53:226/**
7 * This file defines a function pointer type for the
8 * <code>PPB_GetInterface</code> function.
neb@chromium.org2272ed32011-03-30 17:37:549 */
10
noelallen@google.com745b0d42011-07-16 23:53:2211/**
12 * This function pointer type defines the signature for the
13 * <code>PPB_GetInterface</code> function. A generic
14 * <code>PPB_GetInterface</code> pointer is passed to
15 * <code>PPP_InitializedModule</code> when your module is loaded. You can use
16 * this pointer to request a pointer to a specific browser interface. Browser
17 * interface names are ASCII strings and are generally defined in the header
18 * file for the interface, such as <code>PPB_AUDIO_INTERFACE</code> found in
19 * <code>ppb.audio.h</code> or
20 * <code>PPB_GRAPHICS_2D_INTERFACE</code> in <code>ppb_graphics_2d.h</code>.
21 * Click
binji@chromium.org33974e142014-01-28 19:34:2122 * <a href="globals_defs.html"
jond@google.combfab6da2011-08-16 18:36:0623 * title="macros">here</a> for a complete list of interface
noelallen@google.com745b0d42011-07-16 23:53:2224 * names.
neb@chromium.org2272ed32011-03-30 17:37:5425 *
26 * This value will be NULL if the interface is not supported on the browser.
27 */
noelallen@google.com745b0d42011-07-16 23:53:2228typedef interface_t PPB_GetInterface([in] str_t interface_name);
29