def METHOD_NAME(content, output, file):
    """Gets functions' declarations from header file.
    Returns FuncInfo objects in dictionary.
    """
    decls = get_declarations(content)
    functions = {}
    for decl in decls:
        decl = decl.strip()
        name, ret, params, call_conv = parse_func_declaration(decl)
        if wrong_func_parameters(decl):
            continue
        if name is not None:
            varargs = False
            if params.endswith('...'):
                varargs = True
                params = params[:params.rfind(',')]
            params_list = parse_func_parameters(params)
            if varargs and output != 'json':
                params_list.append(Param('vararg', '...'))
            finfo = FuncInfo(decl, name, file, ret, params_list, varargs, call_conv)
            finfo.delete_underscores_in_param_names()
            if name in functions.keys():
                logging.warning(
                    'Duplicit declaration: {}\nFile: {}\n{}\nFirst '
                    'declaration was:\nFile: {}\n{}\n'
                    ''.format(
                        name, finfo.header, finfo.decl,
                        functions[name].header, functions[name].decl))
            else:
                functions[name] = finfo
    return functions