• Kir Kolyshkin's avatar
    compel: simplify usage wrt ids · 8ea542f7
    Kir Kolyshkin authored
    Currently, some compel internals are exposed to user API
    (both C and CLI), making its usage more complicated than
    it can be.
    
    In particular, compel user have to specify a number of parameters
    (names for various data) on the command line, and when in C code
    assign a struc piegen_opt_t fields using the same names, without
    using those identifiers anywhere else in the code.
    
    It makes sense to hide this complexity from a user, which is what
    this commit does.
    
    First, remove the ability to specify individual names for data,
    instead introducing a prefix that is prepended to all the names.
    Second, generate a function %PREFIX%_setup_c_header() which does
    all the needed assignments.
    Third, convert users (criu/pie and compel test) to the new API.
    
    NOTE that this patch breaks ARM, as compel hgen is not used for ARM.
    This is to be fixed by a later patch in the series.
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    8ea542f7
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...