Example #1
0
def gen_c_api(intro, cfg):
    streams = gencommon.get_streams(cfg, 'c_header', 'c_impl')
    gencommon.output_enums(streams['c_header'], intro, cfg, 'c')
    c_output_class_handles(streams['c_header'], streams['c_impl'], intro, cfg)
    c_output_free_funs(streams['c_header'], streams['c_impl'], intro, cfg)
    c_output_class_methods(streams['c_header'], streams['c_impl'], intro, cfg)
    gencommon.finish_streams(cfg, streams)
Example #2
0
def gen_cpp_api(intro, cfg):
    streams = gencommon.get_streams(cfg, 'cpp_header')
    gencommon.output_enums(streams['cpp_header'], intro, cfg, 'cpp')
    #     output_classes_fw(streams['cpp_header'], intro, cfg)
    output_classes(streams['cpp_header'], intro, cfg)
    output_free_funs(streams['cpp_header'], intro, cfg)
    gencommon.finish_streams(cfg, streams)
Example #3
0
def gen_cpp_api(intro, cfg):
    streams = gencommon.get_streams(cfg, 'cpp_header')
    gencommon.output_enums(streams['cpp_header'], intro, cfg, 'cpp')
#     output_classes_fw(streams['cpp_header'], intro, cfg)
    output_classes(streams['cpp_header'], intro, cfg)
    output_free_funs(streams['cpp_header'], intro, cfg)
    gencommon.finish_streams(cfg, streams)
Example #4
0
def gen_c_api(intro, cfg):
    streams = gencommon.get_streams(cfg, 'c_header', 'c_impl')
    gencommon.output_enums(streams['c_header'], intro, cfg, 'c')
    c_output_class_handles(streams['c_header'], streams['c_impl'], intro, cfg)
    c_output_free_funs(streams['c_header'], streams['c_impl'], intro, cfg)
    c_output_class_methods(streams['c_header'], streams['c_impl'], intro, cfg)
    gencommon.finish_streams(cfg, streams)