Skip to content

Commit

Permalink
build: export small/ibuf.c symbols
Browse files Browse the repository at this point in the history
Tarantool is going to change the way how symbols are exported for
FFI and the public C API. That required from small/ explicitly
give a list of symbols, which should be exposed.

The patch does it for ibuf. All the other symbols are not needed
to be visible. Ibuf is intensively used by FFI.

Part of tarantool/2971
  • Loading branch information
Gerold103 committed Apr 11, 2020
1 parent 3df5050 commit cebc405
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions small/ibuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,14 @@ ibuf_reserve_slow(struct ibuf *ibuf, size_t size)
return ibuf->wpos;
}

void **
small_ibuf_export_syms(void)
{
static void *syms[] = {
(void *)ibuf_create,
(void *)ibuf_destroy,
(void *)ibuf_reinit,
(void *)ibuf_reserve_slow,
};
return syms;
}

0 comments on commit cebc405

Please sign in to comment.