libctf: type copying
authorNick Alcock <nick.alcock@oracle.com>
Wed, 24 Apr 2019 10:22:03 +0000 (11:22 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 28 May 2019 16:08:26 +0000 (17:08 +0100)
commitc499eb6896cd803d26da8c719bfac9c03e596c08
treef36ab930a9817d7e78c17ec720983b1bb64f5374
parentb437bfe0f4cf06559ca4c508a2869383196ddc6b
libctf: type copying

ctf_add_type() allows you to copy types, and all the types they depend
on, from one container to another (writable) container. This lets a
program maintaining multiple distinct containers (not in a parent-child
relationship) introduce types that depend on types in one container in
another writable one, by copying the necessary types.

libctf/
* ctf-create.c (enumcmp): New.
(enumadd): Likewise.
(membcmp): Likewise.
(membadd): Likewise.
(ctf_add_type): Likewise.
libctf/ChangeLog
libctf/ctf-create.c