blob: 6050f9bcc16cf688f805cd968bfdc1775436323f [file] [log] [blame]
Allan MacKinnon4359d522018-06-19 13:57:04 -07001/*
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
21void *
22skc_runtime_host_perm_alloc(struct skc_runtime * const runtime,
23 skc_mem_flags_e const flags,
24 size_t const size);
25
26void
27skc_runtime_host_perm_free(struct skc_runtime * const runtime,
28 void * const mem);
29
30void *
31skc_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
37void
38skc_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//