Allan MacKinnon | 4359d52 | 2018-06-19 13:57:04 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can |
| 5 | * be found in the LICENSE file. |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | // |
| 12 | // |
| 13 | // |
| 14 | |
| 15 | #include "allocator_host.h" |
| 16 | |
| 17 | // |
| 18 | // HOST MEMORY ALLOCATION |
| 19 | // |
| 20 | |
| 21 | void * |
| 22 | skc_runtime_host_perm_alloc(struct skc_runtime * const runtime, |
| 23 | skc_mem_flags_e const flags, |
| 24 | size_t const size); |
| 25 | |
| 26 | void |
| 27 | skc_runtime_host_perm_free(struct skc_runtime * const runtime, |
| 28 | void * const mem); |
| 29 | |
| 30 | void * |
| 31 | skc_runtime_host_temp_alloc(struct skc_runtime * const runtime, |
| 32 | skc_mem_flags_e const flags, |
| 33 | size_t const size, |
| 34 | skc_subbuf_id_t * const subbuf_id, |
| 35 | size_t * const subbuf_size); |
| 36 | |
| 37 | void |
| 38 | skc_runtime_host_temp_free(struct skc_runtime * const runtime, |
| 39 | void * const mem, |
| 40 | skc_subbuf_id_t const subbuf_id); |
| 41 | |
| 42 | |
| 43 | // |
| 44 | // |
| 45 | // |