Blame include/share/windows_unicode_filenames.h

Packit Service 065837
/* libFLAC - Free Lossless Audio Codec library
Packit Service 065837
 * Copyright (C) 2013-2016  Xiph.Org Foundation
Packit Service 065837
 *
Packit Service 065837
 * Redistribution and use in source and binary forms, with or without
Packit Service 065837
 * modification, are permitted provided that the following conditions
Packit Service 065837
 * are met:
Packit Service 065837
 *
Packit Service 065837
 * - Redistributions of source code must retain the above copyright
Packit Service 065837
 * notice, this list of conditions and the following disclaimer.
Packit Service 065837
 *
Packit Service 065837
 * - Redistributions in binary form must reproduce the above copyright
Packit Service 065837
 * notice, this list of conditions and the following disclaimer in the
Packit Service 065837
 * documentation and/or other materials provided with the distribution.
Packit Service 065837
 *
Packit Service 065837
 * - Neither the name of the Xiph.org Foundation nor the names of its
Packit Service 065837
 * contributors may be used to endorse or promote products derived from
Packit Service 065837
 * this software without specific prior written permission.
Packit Service 065837
 *
Packit Service 065837
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit Service 065837
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit Service 065837
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit Service 065837
 * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
Packit Service 065837
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
Packit Service 065837
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
Packit Service 065837
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
Packit Service 065837
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
Packit Service 065837
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
Packit Service 065837
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Packit Service 065837
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 065837
 */
Packit Service 065837
Packit Service 065837
#ifdef _WIN32
Packit Service 065837
Packit Service 065837
#ifndef flac__windows_unicode_filenames_h
Packit Service 065837
#define flac__windows_unicode_filenames_h
Packit Service 065837
Packit Service 065837
#include <stdio.h>
Packit Service 065837
#include <sys/stat.h>
Packit Service 065837
#include <sys/utime.h>
Packit Service 065837
#include "FLAC/ordinals.h"
Packit Service 065837
Packit Service 065837
#ifdef __cplusplus
Packit Service 065837
extern "C" {
Packit Service 065837
#endif
Packit Service 065837
Packit Service 065837
void flac_internal_set_utf8_filenames(FLAC__bool flag);
Packit Service 065837
FLAC__bool flac_internal_get_utf8_filenames(void);
Packit Service 065837
#define flac_set_utf8_filenames flac_internal_set_utf8_filenames
Packit Service 065837
#define flac_get_utf8_filenames flac_internal_get_utf8_filenames
Packit Service 065837
Packit Service 065837
FILE* flac_internal_fopen_utf8(const char *filename, const char *mode);
Packit Service 065837
int flac_internal_stat64_utf8(const char *path, struct __stat64 *buffer);
Packit Service 065837
int flac_internal_chmod_utf8(const char *filename, int pmode);
Packit Service 065837
int flac_internal_utime_utf8(const char *filename, struct utimbuf *times);
Packit Service 065837
int flac_internal_unlink_utf8(const char *filename);
Packit Service 065837
int flac_internal_rename_utf8(const char *oldname, const char *newname);
Packit Service 065837
Packit Service 065837
#include <windows.h>
Packit Service 065837
HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
Packit Service 065837
#define CreateFile_utf8 flac_internal_CreateFile_utf8
Packit Service 065837
Packit Service 065837
#ifdef __cplusplus
Packit Service 065837
} /* extern "C" */
Packit Service 065837
#endif
Packit Service 065837
Packit Service 065837
#endif
Packit Service 065837
#endif