diff options
Diffstat (limited to 'en/devices/index.html')
-rw-r--r-- | en/devices/index.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/en/devices/index.html b/en/devices/index.html index a1c3e4ee..49bea636 100644 --- a/en/devices/index.html +++ b/en/devices/index.html @@ -127,7 +127,7 @@ by the contract defined in each hardware-specific HAL interface. contains a <code>hw_module_t</code> struct along with other camera-specific function pointers: </p> -<pre> +<pre class="devsite-click-to-copy"> typedef struct camera_module { hw_module_t common; int (*get_number_of_cameras)(void); @@ -137,7 +137,8 @@ typedef struct camera_module { <p>When you implement a HAL and create the module struct, you must name it <code>HAL_MODULE_INFO_SYM</code>. For instance, here is an example from the Nexus 9 audio HAL:</p> -<pre> + +<pre class="devsite-click-to-copy"> struct audio_module HAL_MODULE_INFO_SYM = { .common = { .tag = HARDWARE_MODULE_TAG, @@ -159,7 +160,7 @@ struct audio_module HAL_MODULE_INFO_SYM = { <code>audio_hw_device_t</code> struct type contains function pointers to audio device operations: </p> -<pre> +<pre class="devsite-click-to-copy"> struct audio_hw_device { struct hw_device_t common; |