Home | History | Annotate | Download | only in skc
      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 "suballocator.h"
     16 
     17 //
     18 //
     19 //
     20 
     21 typedef enum skc_mem_flags_e {
     22 
     23   SKC_MEM_FLAGS_READ_WRITE,
     24   SKC_MEM_FLAGS_WRITE_ONLY,
     25   SKC_MEM_FLAGS_READ_ONLY
     26 
     27 } skc_mem_flags_e;
     28 
     29 //
     30 //
     31 //
     32 
     33 struct skc_allocator_host
     34 {
     35 #if 0
     36   struct {
     37     // in case we want to instrument perm allocs
     38   } perm;
     39 #endif
     40 
     41   struct {
     42     struct skc_suballocator suballocator;
     43     skc_uchar             * extent;
     44   } temp;
     45 };
     46 
     47 //
     48 //
     49 //
     50 
     51 void
     52 skc_allocator_host_create(struct skc_runtime * const runtime);
     53 
     54 void
     55 skc_allocator_host_dispose(struct skc_runtime * const runtime);
     56 
     57 //
     58 //
     59 //
     60