NPAPI:Pepper: Difference between revisions

Line 105: Line 105:


<pre>
<pre>
typedef void NPDeviceConfig;
typedef NPError (*NPDeviceQueryCapabilityPtr(NPP instance,
typedef NPError (*NPDeviceQueryCapabilityPtr(NPP instance,
                                             int32 capability,
                                             int32 capability,
Line 113: Line 115:
</pre>
</pre>


Use queryCapability to ask a device about a specific capability.  Use queryConfig to ask a device about a set of capabilities.  The obtained configuration is the closest match to the requested configuration.
Use queryCapability to ask a device about a specific capability.  Use queryConfig to ask a device about a set of capabilities.  The obtained configuration is the closest match to the requested configuration.  If the obtained configuration is undesirable, the application is free to attempt additional queryConfig calls until a satisfactory configuration is discovered.  Use the obtained configuration as input when initializing a device.


=== Getting a Device Context ===
=== Getting a Device Context ===
45

edits