mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
tweaks to build libs as DLLs under windows
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#ifndef FLAC__PLUGIN_COMMON__ALL_H
|
||||
#define FLAC__PLUGIN_COMMON__ALL_H
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#include "canonical_tag.h"
|
||||
#include "charset.h"
|
||||
#include "dither.h"
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#ifndef FLAC__PLUGIN_COMMON__CANONICAL_TAG_H
|
||||
#define FLAC__PLUGIN_COMMON__CANONICAL_TAG_H
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#include "id3v1.h"
|
||||
|
||||
typedef struct {
|
||||
@@ -34,22 +36,22 @@ typedef struct {
|
||||
char *comment;
|
||||
} FLAC_Plugin__CanonicalTag;
|
||||
|
||||
FLAC_Plugin__CanonicalTag *FLAC_plugin__canonical_tag_new();
|
||||
void FLAC_plugin__canonical_tag_delete(FLAC_Plugin__CanonicalTag *);
|
||||
void FLAC_plugin__canonical_tag_init(FLAC_Plugin__CanonicalTag *);
|
||||
void FLAC_plugin__canonical_tag_clear(FLAC_Plugin__CanonicalTag *);
|
||||
PLUGIN_COMMON_API FLAC_Plugin__CanonicalTag *FLAC_plugin__canonical_tag_new();
|
||||
PLUGIN_COMMON_API void FLAC_plugin__canonical_tag_delete(FLAC_Plugin__CanonicalTag *);
|
||||
PLUGIN_COMMON_API void FLAC_plugin__canonical_tag_init(FLAC_Plugin__CanonicalTag *);
|
||||
PLUGIN_COMMON_API void FLAC_plugin__canonical_tag_clear(FLAC_Plugin__CanonicalTag *);
|
||||
|
||||
/* For each null field in dest, move the corresponding field from src
|
||||
* WATCHOUT: note that src is not-const, because fields are 'moved' from
|
||||
* src to dest and the src field is set to null.
|
||||
*/
|
||||
void FLAC_plugin__canonical_tag_merge(FLAC_Plugin__CanonicalTag *dest, FLAC_Plugin__CanonicalTag *src);
|
||||
PLUGIN_COMMON_API void FLAC_plugin__canonical_tag_merge(FLAC_Plugin__CanonicalTag *dest, FLAC_Plugin__CanonicalTag *src);
|
||||
|
||||
void FLAC_plugin__canonical_tag_convert_from_id3v1(FLAC_Plugin__CanonicalTag *, const FLAC_Plugin__Id3v1_Tag *);
|
||||
PLUGIN_COMMON_API void FLAC_plugin__canonical_tag_convert_from_id3v1(FLAC_Plugin__CanonicalTag *, const FLAC_Plugin__Id3v1_Tag *);
|
||||
|
||||
/* Returns a merged tag based on any Vorbis comments, id3v2 tag, and id3v1.
|
||||
* In case of overlaps the preceding precedence applies.
|
||||
*/
|
||||
void FLAC_plugin__canonical_tag_get_combined(const char *filename, FLAC_Plugin__CanonicalTag *tag);
|
||||
PLUGIN_COMMON_API void FLAC_plugin__canonical_tag_get_combined(const char *filename, FLAC_Plugin__CanonicalTag *tag);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -30,10 +30,12 @@
|
||||
* Prototypes *
|
||||
**************/
|
||||
|
||||
char* FLAC_plugin__charset_get_current (void);
|
||||
char* FLAC_plugin__charset_convert_string (const char *string, char *from, char *to);
|
||||
#include "export.h"
|
||||
|
||||
PLUGIN_COMMON_API char *FLAC_plugin__charset_get_current();
|
||||
PLUGIN_COMMON_API char *FLAC_plugin__charset_convert_string(const char *string, char *from, char *to);
|
||||
|
||||
/* returns 1 for success, 0 for failure or no iconv */
|
||||
int FLAC_plugin__charset_test_conversion (char *from, char *to);
|
||||
PLUGIN_COMMON_API int FLAC_plugin__charset_test_conversion(char *from, char *to);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,10 +19,12 @@
|
||||
#ifndef FLAC__PLUGIN_COMMON__DITHER_H
|
||||
#define FLAC__PLUGIN_COMMON__DITHER_H
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
#define FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS 2
|
||||
|
||||
unsigned FLAC__plugin_common__pack_pcm_signed_little_endian(FLAC__byte *data, FLAC__int32 *input, unsigned wide_samples, unsigned channels, unsigned source_bps, unsigned target_bps);
|
||||
PLUGIN_COMMON_API unsigned FLAC__plugin_common__pack_pcm_signed_little_endian(FLAC__byte *data, FLAC__int32 *input, unsigned wide_samples, unsigned channels, unsigned source_bps, unsigned target_bps);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#include "FLAC/ordinals.h"
|
||||
|
||||
typedef struct {
|
||||
@@ -42,12 +44,12 @@ typedef struct {
|
||||
unsigned char genre;
|
||||
} FLAC_Plugin__Id3v1_Tag;
|
||||
|
||||
FLAC__bool FLAC_plugin__id3v1_tag_get(const char *filename, FLAC_Plugin__Id3v1_Tag *tag);
|
||||
PLUGIN_COMMON_API FLAC__bool FLAC_plugin__id3v1_tag_get(const char *filename, FLAC_Plugin__Id3v1_Tag *tag);
|
||||
|
||||
|
||||
#define FLAC_PLUGIN__ID3V1_TAG_INVALID_GENRE 255
|
||||
|
||||
const char *FLAC_plugin__id3v1_tag_get_genre_as_string(unsigned char genre_code);
|
||||
unsigned FLAC_plugin__id3v1_tag_genre_table_max();
|
||||
PLUGIN_COMMON_API const char *FLAC_plugin__id3v1_tag_get_genre_as_string(unsigned char genre_code);
|
||||
PLUGIN_COMMON_API unsigned FLAC_plugin__id3v1_tag_genre_table_max();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,10 @@
|
||||
#ifndef FLAC__PLUGIN_COMMON__VORBISCOMMENT_H
|
||||
#define FLAC__PLUGIN_COMMON__VORBISCOMMENT_H
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#include "canonical_tag.h"
|
||||
|
||||
void FLAC_plugin__vorbiscomment_get(const char *filename, FLAC_Plugin__CanonicalTag *tag);
|
||||
PLUGIN_COMMON_API void FLAC_plugin__vorbiscomment_get(const char *filename, FLAC_Plugin__CanonicalTag *tag);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user