chromium/third_party/ffmpeg/libavutil/bprint.c

/*
 * Copyright (c) 2012 Nicolas George
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "avstring.h"
#include "bprint.h"
#include "compat/va_copy.h"
#include "error.h"
#include "macros.h"
#include "mem.h"

#define av_bprint_room(buf)
#define av_bprint_is_allocated(buf)

static int av_bprint_alloc(AVBPrint *buf, unsigned room)
{}

static void av_bprint_grow(AVBPrint *buf, unsigned extra_len)
{}

void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max)
{}

void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size)
{}

void av_bprintf(AVBPrint *buf, const char *fmt, ...)
{}

void av_vbprintf(AVBPrint *buf, const char *fmt, va_list vl_arg)
{}

void av_bprint_chars(AVBPrint *buf, char c, unsigned n)
{}

void av_bprint_append_data(AVBPrint *buf, const char *data, unsigned size)
{}

void av_bprint_strftime(AVBPrint *buf, const char *fmt, const struct tm *tm)
{}

void av_bprint_get_buffer(AVBPrint *buf, unsigned size,
                          unsigned char **mem, unsigned *actual_size)
{}

void av_bprint_clear(AVBPrint *buf)
{}

int av_bprint_finalize(AVBPrint *buf, char **ret_str)
{}

#define WHITESPACES

void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars,
                      enum AVEscapeMode mode, int flags)
{}