Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.hardware.media.c2@1.0; |
| 18 | |
Pawin Vongmasa | 7570e3c | 2018-11-11 19:30:19 -0800 | [diff] [blame] | 19 | import android.hardware.graphics.bufferqueue@1.0::IGraphicBufferProducer; |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 20 | import android.hardware.media.omx@1.0::IGraphicBufferSource; |
| 21 | |
| 22 | import IConfigurable; |
| 23 | import IComponentInterface; |
| 24 | import IComponentListener; |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 25 | import IInputSurface; |
| 26 | import IInputSurfaceConnection; |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 27 | |
| 28 | /** |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 29 | * Interface for a Codec2 component corresponding to API level 1.0 or below. |
| 30 | * Components have two states: stopped and running. The running state has three |
| 31 | * sub-states: executing, tripped and error. |
| 32 | * |
| 33 | * All methods in `IComponent` must not block. If a method call cannot be |
| 34 | * completed in a timely manner, it must return `TIMED_OUT` in the return |
| 35 | * status. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 36 | */ |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 37 | interface IComponent { |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 38 | |
| 39 | // METHODS AVAILABLE WHEN RUNNING |
| 40 | // ========================================================================= |
| 41 | |
| 42 | /** |
| 43 | * Queues up work for the component. |
| 44 | * |
| 45 | * This method must be supported in running (including tripped) states. |
| 46 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 47 | * It is acceptable for this method to return `OK` and return an error value |
| 48 | * using the IComponentListener::onWorkDone() callback. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 49 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 50 | * @param workBundle `WorkBundle` object containing a list of `Work` objects |
| 51 | * to queue to the component. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 52 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 53 | * - `OK` - Works in @p workBundle were successfully queued. |
| 54 | * - `BAD_INDEX` - Some component id in some `Worklet` is not valid. |
| 55 | * - `CANNOT_DO` - The components are not tunneled but some `Work` object |
| 56 | * contains tunneling information. |
| 57 | * - `NO_MEMORY` - Not enough memory to queue @p workBundle. |
| 58 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 59 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 60 | */ |
| 61 | queue(WorkBundle workBundle) generates (Status status); |
| 62 | |
| 63 | /** |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 64 | * Discards and abandons any pending `Work` items for the component. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 65 | * |
| 66 | * This method must be supported in running (including tripped) states. |
| 67 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 68 | * `Work` that could be immediately abandoned/discarded must be returned in |
| 69 | * @p flushedWorkBundle. The order in which queued `Work` items are |
| 70 | * discarded can be arbitrary. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 71 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 72 | * `Work` that could not be abandoned or discarded immediately must be |
| 73 | * marked to be discarded at the earliest opportunity, and must be returned |
| 74 | * via IComponentListener::onWorkDone(). This must be completed within |
| 75 | * 500ms. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 76 | * |
| 77 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 78 | * - `OK` - The component has been successfully flushed. |
| 79 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 80 | * - `CORRUPTED` - Some unknown error occurred. |
| 81 | * @return flushedWorkBundle `WorkBundle` object containing flushed `Work` |
| 82 | * items. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 83 | */ |
| 84 | flush( |
| 85 | ) generates ( |
| 86 | Status status, |
| 87 | WorkBundle flushedWorkBundle |
| 88 | ); |
| 89 | |
| 90 | /** |
| 91 | * Drains the component, and optionally downstream components. This is a |
| 92 | * signalling method; as such it does not wait for any work completion. |
| 93 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 94 | * The last `Work` item is marked as "drain-till-here", so the component is |
| 95 | * notified not to wait for further `Work` before it processes what is |
| 96 | * already queued. This method can also be used to set the end-of-stream |
| 97 | * flag after `Work` has been queued. Client can continue to queue further |
| 98 | * `Work` immediately after this method returns. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 99 | * |
| 100 | * This method must be supported in running (including tripped) states. |
| 101 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 102 | * `Work` that is completed must be returned via |
| 103 | * IComponentListener::onWorkDone(). |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 104 | * |
| 105 | * @param withEos Whether to drain the component with marking end-of-stream. |
| 106 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 107 | * - `OK` - The drain request has been successfully recorded. |
| 108 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 109 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 110 | */ |
| 111 | drain(bool withEos) generates (Status status); |
| 112 | |
| 113 | /** |
| 114 | * Starts using a surface for output. |
| 115 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 116 | * This method must not block. |
| 117 | * |
| 118 | * @param blockPoolId Id of the `C2BlockPool` to be associated with the |
| 119 | * output surface. |
| 120 | * @param surface Output surface. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 121 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 122 | * - `OK` - The operation completed successfully. |
| 123 | * - `CANNOT_DO` - The component does not support an output surface. |
| 124 | * - `REFUSED` - The output surface cannot be accessed. |
| 125 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 126 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 127 | */ |
| 128 | setOutputSurface( |
| 129 | uint64_t blockPoolId, |
| 130 | IGraphicBufferProducer surface |
| 131 | ) generates ( |
| 132 | Status status |
| 133 | ); |
| 134 | |
| 135 | /** |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 136 | * Starts using an input surface. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 137 | * |
| 138 | * The component must be in running state. |
| 139 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 140 | * @param inputSurface Input surface to connect to. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 141 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 142 | * - `OK` - The operation completed successfully. |
| 143 | * - `CANNOT_DO` - The component does not support an input surface. |
| 144 | * - `BAD_STATE` - The component is not in running state. |
| 145 | * - `DUPLICATE` - The component is already connected to an input surface. |
| 146 | * - `REFUSED` - The input surface is already in use. |
| 147 | * - `NO_MEMORY` - Not enough memory to start the component. |
| 148 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 149 | * - `CORRUPTED` - Some unknown error occurred. |
| 150 | * @return connection `IInputSurfaceConnection` object, which can be used to |
| 151 | * query and configure properties of the connection. This cannot be |
| 152 | * null. |
| 153 | */ |
| 154 | connectToInputSurface( |
| 155 | IInputSurface inputSurface |
| 156 | ) generates ( |
| 157 | Status status, |
| 158 | IInputSurfaceConnection connection |
| 159 | ); |
| 160 | |
| 161 | /** |
| 162 | * Starts using an OMX input surface. |
| 163 | * |
| 164 | * The component must be in running state. |
| 165 | * |
| 166 | * This method is similar to connectToInputSurface(), but it takes an OMX |
| 167 | * input surface (as a pair of `IGraphicBufferProducer` and |
| 168 | * `IGraphicBufferSource`) instead of Codec2's own `IInputSurface`. |
| 169 | * |
| 170 | * @param producer Producer component of an OMX input surface. |
| 171 | * @param source Source component of an OMX input surface. |
| 172 | * @return status Status of the call, which may be |
| 173 | * - `OK` - The operation completed successfully. |
| 174 | * - `CANNOT_DO` - The component does not support an OMX input surface. |
| 175 | * - `BAD_STATE` - The component is not in running state. |
| 176 | * - `DUPLICATE` - The component is already connected to an input surface. |
| 177 | * - `REFUSED` - The input surface is already in use. |
| 178 | * - `NO_MEMORY` - Not enough memory to start the component. |
| 179 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 180 | * - `CORRUPTED` - Some unknown error occurred. |
| 181 | * @return connection `IInputSurfaceConnection` object, which can be used to |
| 182 | * query and configure properties of the connection. This cannot be |
| 183 | * null. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 184 | */ |
| 185 | connectToOmxInputSurface( |
| 186 | IGraphicBufferProducer producer, |
| 187 | IGraphicBufferSource source |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 188 | ) generates ( |
| 189 | Status status, |
| 190 | IInputSurfaceConnection connection |
| 191 | ); |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 192 | |
| 193 | /** |
| 194 | * Stops using an input surface. |
| 195 | * |
| 196 | * The component must be in running state. |
| 197 | * |
| 198 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 199 | * - `OK` - The operation completed successfully. |
| 200 | * - `CANNOT_DO` - The component does not support an input surface. |
| 201 | * - `BAD_STATE` - The component is not in running state. |
| 202 | * - `NOT_FOUND` - The component is not connected to an input surface. |
| 203 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 204 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 205 | */ |
| 206 | disconnectFromInputSurface() generates (Status Status); |
| 207 | |
| 208 | /** |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 209 | * Creates a local `C2BlockPool` backed by the given allocator and returns |
| 210 | * its id. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 211 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 212 | * The returned @p blockPoolId is the only way the client can refer to a |
| 213 | * `C2BlockPool` object in the component. The id can be passed to |
| 214 | * setOutputSurface() or used in some C2Param objects later. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 215 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 216 | * The created `C2BlockPool` object can be destroyed by calling |
| 217 | * destroyBlockPool(), reset() or release(). reset() and release() must |
| 218 | * destroy all `C2BlockPool` objects that have been created. |
| 219 | * |
| 220 | * @param allocatorId Id of a `C2Allocator`. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 221 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 222 | * - `OK` - The operation completed successfully. |
| 223 | * - `NO_MEMORY` - Not enough memory to create the pool. |
| 224 | * - `BAD_VALUE` - @p allocatorId is not recognized. |
| 225 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 226 | * - `CORRUPTED` - Some unknown error occurred. |
| 227 | * @return blockPoolId Id of the created C2BlockPool object. This may be |
| 228 | * used in setOutputSurface() if the allocator |
| 229 | * @return configurable Configuration interface for the created pool. This |
| 230 | * must not be null. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 231 | */ |
| 232 | createBlockPool(uint32_t allocatorId) generates ( |
| 233 | Status status, |
| 234 | uint64_t blockPoolId, |
| 235 | IConfigurable configurable |
| 236 | ); |
| 237 | |
| 238 | /** |
| 239 | * Destroys a local block pool previously created by createBlockPool(). |
| 240 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 241 | * @param blockPoolId Id of a `C2BlockPool` that was previously returned by |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 242 | * createBlockPool(). |
| 243 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 244 | * - `OK` - The operation completed successfully. |
| 245 | * - `NOT_FOUND` - The supplied blockPoolId is not valid. |
| 246 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 247 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 248 | */ |
| 249 | destroyBlockPool(uint64_t blockPoolId) generates (Status status); |
| 250 | |
| 251 | // STATE CHANGE METHODS |
| 252 | // ========================================================================= |
| 253 | |
| 254 | /** |
| 255 | * Starts the component. |
| 256 | * |
| 257 | * This method must be supported in stopped state as well as tripped state. |
| 258 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 259 | * If the return value is `OK`, the component must be in the running state. |
| 260 | * If the return value is `BAD_STATE` or `DUPLICATE`, no state change is |
| 261 | * expected as a response to this call. Otherwise, the component must be in |
| 262 | * the stopped state. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 263 | * |
| 264 | * If a component is in the tripped state and start() is called while the |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 265 | * component configuration still results in a trip, start() must succeed and |
| 266 | * a new onTripped() callback must be used to communicate the configuration |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 267 | * conflict that results in the new trip. |
| 268 | * |
| 269 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 270 | * - `OK` - The component has started successfully. |
| 271 | * - `BAD_STATE` - Component is not in stopped or tripped state. |
| 272 | * - `DUPLICATE` - When called during another start call from another |
| 273 | * thread. |
| 274 | * - `NO_MEMORY` - Not enough memory to start the component. |
| 275 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 276 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 277 | */ |
| 278 | start() generates (Status status); |
| 279 | |
| 280 | /** |
| 281 | * Stops the component. |
| 282 | * |
| 283 | * This method must be supported in running (including tripped) state. |
| 284 | * |
| 285 | * This method must return withing 500ms. |
| 286 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 287 | * Upon this call, all pending `Work` must be abandoned. |
| 288 | * |
| 289 | * If the return value is `BAD_STATE` or `DUPLICATE`, no state change is |
| 290 | * expected as a response to this call. For all other return values, the |
| 291 | * component must be in the stopped state. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 292 | * |
| 293 | * This does not alter any settings and tunings that may have resulted in a |
| 294 | * tripped state. |
| 295 | * |
| 296 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 297 | * - `OK` - The component has stopped successfully. |
| 298 | * - `BAD_STATE` - Component is not in running state. |
| 299 | * - `DUPLICATE` - When called during another stop call from another |
| 300 | * thread. |
| 301 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 302 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 303 | */ |
| 304 | stop() generates (Status status); |
| 305 | |
| 306 | /** |
| 307 | * Resets the component. |
| 308 | * |
| 309 | * This method must be supported in all (including tripped) states other |
| 310 | * than released. |
| 311 | * |
| 312 | * This method must be supported during any other blocking call. |
| 313 | * |
| 314 | * This method must return withing 500ms. |
| 315 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 316 | * When this call returns, if @p status is `OK`, all `Work` items must |
| 317 | * have been abandoned, and all resources (including `C2BlockPool` objects |
| 318 | * previously created by createBlockPool()) must have been released. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 319 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 320 | * If the return value is `BAD_STATE` or `DUPLICATE`, no state change is |
| 321 | * expected as a response to this call. For all other return values, the |
| 322 | * component must be in the stopped state. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 323 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 324 | * This brings settings back to their default, "guaranteeing" no tripped |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 325 | * state. |
| 326 | * |
| 327 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 328 | * - `OK` - The component has been reset. |
| 329 | * - `BAD_STATE` - Component is in released state. |
| 330 | * - `DUPLICATE` - When called during another reset call from another |
| 331 | * thread. |
| 332 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 333 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 334 | */ |
| 335 | reset() generates (Status status); |
| 336 | |
| 337 | /** |
| 338 | * Releases the component. |
| 339 | * |
| 340 | * This method must be supported in stopped state. |
| 341 | * |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 342 | * This method destroys the component. Upon return, if @p status is `OK` or |
| 343 | * `DUPLICATE`, all resources must have been released. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 344 | * |
| 345 | * @return status Status of the call, which may be |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 346 | * - `OK` - The component has been released. |
| 347 | * - `BAD_STATE` - The component is running. |
| 348 | * - `DUPLICATE` - The component is already released. |
| 349 | * - `TIMED_OUT` - The operation cannot be finished in a timely manner. |
| 350 | * - `CORRUPTED` - Some unknown error occurred. |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 351 | */ |
| 352 | release() generates (Status status); |
| 353 | |
Pawin Vongmasa | 6c9e784 | 2018-11-14 17:16:10 -0800 | [diff] [blame] | 354 | /** |
| 355 | * Returns the @ref IComponentInterface instance associated to this |
| 356 | * component. |
| 357 | * |
| 358 | * An @p IConfigurable instance for the component can be obtained by calling |
| 359 | * IComponentInterface::getConfigurable() on the returned @p intf. |
| 360 | * |
| 361 | * @return intf `IComponentInterface` instance. This must not be null. |
| 362 | */ |
| 363 | getInterface() generates (IComponentInterface intf); |
Pawin Vongmasa | c80bf21 | 2018-09-06 05:22:36 -0700 | [diff] [blame] | 364 | }; |
| 365 | |