use create_local
This commit is contained in:
parent
ca1d07f657
commit
448021e7e1
3 changed files with 7 additions and 4 deletions
|
|
@ -23,9 +23,14 @@ static struct capn_segment *create(void *u, uint32_t id, int sz) {
|
|||
return s;
|
||||
}
|
||||
|
||||
static struct capn_segment *create_local(void *u, int sz) {
|
||||
return create(u, 0, sz);
|
||||
}
|
||||
|
||||
void capn_init_malloc(struct capn *c) {
|
||||
memset(c, 0, sizeof(*c));
|
||||
c->create = &create;
|
||||
c->create_local = &create_local;
|
||||
}
|
||||
|
||||
void capn_free(struct capn *c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue