~ubuntu-branches/ubuntu/raring/flac/raring

« back to all changes in this revision

Viewing changes to src/test_libFLAC++/metadata_utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2007-05-29 22:56:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529225636-ljeff8xxip09qaap
Tags: 1.1.4-1
* New upstream release. closes: #405167, #411311
  - libOggFLAC and libOggFLAC++ have been merged into libFLAC, so
    remove their corresponding packages.
  - Because of the API changes required to effect the above, there has
    been yet another soname bump. libflac7 -> libflac8 and
    libflac++5 -> libflac++6. Emails have been dispatched to the
    maintainers of dependent packages.
* Some notes on patches that were removed:
  - 02_stdin_stdout, 06_manpage_mention_utf8_convert: merged upstream
  - 08_manpage_warnings: Upstream has changed the manpage so it defintely
    can't fit in in 80 cols, so just forget about it. We'll live.
  - 05_eof_warnings_are_errors: Upstream decided to add a -w option to
    flac to treat all warnings as errors. I am going to defer to that
    for now, but if people think it's stupid let me know and I'll port
    the patch forward.
  - 04_stack_smasher: was a backport from 1.1.3, so it's obsolete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* test_libFLAC - Unit tester for libFLAC
2
 
 * Copyright (C) 2002,2003,2004,2005  Josh Coalson
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU General Public License
6
 
 * as published by the Free Software Foundation; either version 2
7
 
 * of the License, or (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 * GNU General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17
 
 */
18
 
 
19
 
#ifndef FLAC__TEST_LIBFLAC_METADATA_H
20
 
#define FLAC__TEST_LIBFLAC_METADATA_H
21
 
 
22
 
/*
23
 
 * These are not tests, just utility functions used by the metadata tests
24
 
 */
25
 
 
26
 
#include "FLAC/format.h"
27
 
#include <stdio.h>
28
 
#include <stdlib.h> /* for malloc() */
29
 
#include <string.h> /* for memcmp() */
30
 
 
31
 
FLAC__bool mutils__compare_block_data_streaminfo(const FLAC__StreamMetadata_StreamInfo *block, const FLAC__StreamMetadata_StreamInfo *blockcopy);
32
 
 
33
 
FLAC__bool mutils__compare_block_data_padding(const FLAC__StreamMetadata_Padding *block, const FLAC__StreamMetadata_Padding *blockcopy, unsigned block_length);
34
 
 
35
 
FLAC__bool mutils__compare_block_data_application(const FLAC__StreamMetadata_Application *block, const FLAC__StreamMetadata_Application *blockcopy, unsigned block_length);
36
 
 
37
 
FLAC__bool mutils__compare_block_data_seektable(const FLAC__StreamMetadata_SeekTable *block, const FLAC__StreamMetadata_SeekTable *blockcopy);
38
 
 
39
 
FLAC__bool mutils__compare_block_data_vorbiscomment(const FLAC__StreamMetadata_VorbisComment *block, const FLAC__StreamMetadata_VorbisComment *blockcopy);
40
 
 
41
 
FLAC__bool mutils__compare_block_data_cuesheet(const FLAC__StreamMetadata_CueSheet *block, const FLAC__StreamMetadata_CueSheet *blockcopy);
42
 
 
43
 
FLAC__bool mutils__compare_block_data_unknown(const FLAC__StreamMetadata_Unknown *block, const FLAC__StreamMetadata_Unknown *blockcopy, unsigned block_length);
44
 
 
45
 
FLAC__bool mutils__compare_block(const FLAC__StreamMetadata *block, const FLAC__StreamMetadata *blockcopy);
46
 
 
47
 
void mutils__init_metadata_blocks(
48
 
        FLAC__StreamMetadata *streaminfo,
49
 
        FLAC__StreamMetadata *padding,
50
 
        FLAC__StreamMetadata *seektable,
51
 
        FLAC__StreamMetadata *application1,
52
 
        FLAC__StreamMetadata *application2,
53
 
        FLAC__StreamMetadata *vorbiscomment,
54
 
        FLAC__StreamMetadata *cuesheet,
55
 
        FLAC__StreamMetadata *unknown
56
 
);
57
 
 
58
 
void mutils__free_metadata_blocks(
59
 
        FLAC__StreamMetadata *streaminfo,
60
 
        FLAC__StreamMetadata *padding,
61
 
        FLAC__StreamMetadata *seektable,
62
 
        FLAC__StreamMetadata *application1,
63
 
        FLAC__StreamMetadata *application2,
64
 
        FLAC__StreamMetadata *vorbiscomment,
65
 
        FLAC__StreamMetadata *cuesheet,
66
 
        FLAC__StreamMetadata *unknown
67
 
);
68
 
 
69
 
#endif