Jean-Luc Brouillet | be21638 | 2015-03-22 12:44:27 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2015 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 | // Don't edit this file! It is auto-generated by frameworks/rs/api/gen_runtime. |
| 18 | |
| 19 | /* |
| 20 | * rs_io.rsh: Input/output functions |
| 21 | * |
| 22 | * TODO Add documentation |
| 23 | */ |
| 24 | #ifndef RENDERSCRIPT_RS_IO_RSH |
| 25 | #define RENDERSCRIPT_RS_IO_RSH |
| 26 | |
| 27 | /* |
| 28 | * rsAllocationIoReceive: Receive new content from the queue |
| 29 | * |
| 30 | * Receive a new set of contents from the queue. |
| 31 | * |
| 32 | * Parameters: |
| 33 | * a allocation to work on |
| 34 | */ |
| 35 | #if (defined(RS_VERSION) && (RS_VERSION >= 16)) |
| 36 | extern void __attribute__((overloadable)) |
| 37 | rsAllocationIoReceive(rs_allocation a); |
| 38 | #endif |
| 39 | |
| 40 | /* |
| 41 | * rsAllocationIoSend: Send new content to the queue |
| 42 | * |
| 43 | * Send the contents of the Allocation to the queue. |
| 44 | * |
| 45 | * Parameters: |
| 46 | * a allocation to work on |
| 47 | */ |
| 48 | #if (defined(RS_VERSION) && (RS_VERSION >= 16)) |
| 49 | extern void __attribute__((overloadable)) |
| 50 | rsAllocationIoSend(rs_allocation a); |
| 51 | #endif |
| 52 | |
| 53 | /* |
| 54 | * Send a message back to the client. Will not block and returns true |
| 55 | * if the message was sendable and false if the fifo was full. |
| 56 | * A message ID is required. Data payload is optional. |
| 57 | */ |
| 58 | extern bool __attribute__((overloadable)) |
| 59 | rsSendToClient(int cmdID); |
| 60 | |
| 61 | extern bool __attribute__((overloadable)) |
| 62 | rsSendToClient(int cmdID, const void* data, uint len); |
| 63 | |
| 64 | /* |
| 65 | * Send a message back to the client, blocking until the message is queued. |
| 66 | * A message ID is required. Data payload is optional. |
| 67 | */ |
| 68 | extern void __attribute__((overloadable)) |
| 69 | rsSendToClientBlocking(int cmdID); |
| 70 | |
| 71 | extern void __attribute__((overloadable)) |
| 72 | rsSendToClientBlocking(int cmdID, const void* data, uint len); |
| 73 | |
| 74 | #endif // RENDERSCRIPT_RS_IO_RSH |