platform/skeleton.c
author Ryan C. Gordon <icculus@icculus.org>
Tue, 02 Apr 2002 13:41:11 +0000
changeset 156 f45e26b5f398
parent 152 14927fc344b0
child 214 19846c18071b
permissions -rw-r--r--
Added warning about potential infinite recursion between setError and grabMutex.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
152
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
/*
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
 * Skeleton platform-dependent support routines for PhysicsFS.
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
 *
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
 * Please see the file LICENSE in the source's root directory.
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
 *
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
 *  This file written by Ryan C. Gordon.
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
 */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
#define __PHYSICSFS_INTERNAL__
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
#include "physfs_internal.h"
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
#error DO NOT COMPILE THIS. IT IS JUST A SKELETON EXAMPLE FILE.
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
const char *__PHYSFS_platformDirSeparator = ":";
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
int __PHYSFS_platformInit(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
    return(1);  /* always succeed. */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
} /* __PHYSFS_platformInit */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    24
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    25
int __PHYSFS_platformDeinit(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
    return(1);  /* always succeed. */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    28
} /* __PHYSFS_platformDeinit */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    29
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    30
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    31
char **__PHYSFS_platformDetectAvailableCDs(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    32
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    33
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    34
} /* __PHYSFS_platformDetectAvailableCDs */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    35
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    36
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    37
char *__PHYSFS_platformCalcBaseDir(const char *argv0)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    38
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    39
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    40
} /* __PHYSFS_platformCalcBaseDir */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    41
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    42
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    43
char *__PHYSFS_platformGetUserName(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    44
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    45
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    46
} /* __PHYSFS_platformGetUserName */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    47
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    48
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    49
char *__PHYSFS_platformGetUserDir(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    50
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    51
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    52
} /* __PHYSFS_platformGetUserDir */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    53
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    54
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    55
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    56
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    57
    return(1);  /* single threaded. */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    58
} /* __PHYSFS_platformGetThreadID */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    59
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    60
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    61
int __PHYSFS_platformStricmp(const char *x, const char *y)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    62
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    63
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    64
} /* __PHYSFS_platformStricmp */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    65
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    66
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    67
int __PHYSFS_platformExists(const char *fname)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    68
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    69
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    70
} /* __PHYSFS_platformExists */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    71
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    72
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    73
int __PHYSFS_platformIsSymLink(const char *fname)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    74
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    75
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    76
} /* __PHYSFS_platformIsSymlink */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    77
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    78
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    79
int __PHYSFS_platformIsDirectory(const char *fname)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    80
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    81
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    82
} /* __PHYSFS_platformIsDirectory */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    83
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    84
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    85
char *__PHYSFS_platformCvtToDependent(const char *prepend,
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    86
                                      const char *dirName,
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    87
                                      const char *append)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    88
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    89
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    90
} /* __PHYSFS_platformCvtToDependent */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    91
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    92
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    93
void __PHYSFS_platformTimeslice(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    94
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    95
} /* __PHYSFS_platformTimeslice */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    96
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    97
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    98
LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    99
                                                  int omitSymLinks)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   100
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   101
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   102
} /* __PHYSFS_platformEnumerateFiles */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   103
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   104
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   105
char *__PHYSFS_platformCurrentDir(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   106
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   107
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   108
} /* __PHYSFS_platformCurrentDir */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   109
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   110
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   111
char *__PHYSFS_platformRealPath(const char *path)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   112
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   113
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   114
} /* __PHYSFS_platformRealPath */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   115
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   116
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   117
int __PHYSFS_platformMkDir(const char *path)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   118
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   119
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   120
} /* __PHYSFS_platformMkDir */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   121
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   122
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   123
void *__PHYSFS_platformOpenRead(const char *filename)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   124
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   125
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   126
} /* __PHYSFS_platformOpenRead */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   127
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   128
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   129
void *__PHYSFS_platformOpenWrite(const char *filename)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   130
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   131
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   132
} /* __PHYSFS_platformOpenWrite */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   133
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   134
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   135
void *__PHYSFS_platformOpenAppend(const char *filename)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   136
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   137
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   138
} /* __PHYSFS_platformOpenAppend */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   139
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   140
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   141
PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buffer,
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   142
                                    PHYSFS_uint32 size, PHYSFS_uint32 count)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   143
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   144
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, -1);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   145
} /* __PHYSFS_platformRead */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   146
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   147
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   148
PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   149
                                     PHYSFS_uint32 size, PHYSFS_uint32 count)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   150
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   151
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, -1);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   152
} /* __PHYSFS_platformWrite */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   153
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   154
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   155
int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   156
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   157
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, -1);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   158
} /* __PHYSFS_platformSeek */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   159
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   160
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   161
PHYSFS_sint64 __PHYSFS_platformTell(void *opaque)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   162
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   163
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, -1);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   164
} /* __PHYSFS_platformTell */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   165
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   166
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   167
PHYSFS_sint64 __PHYSFS_platformFileLength(void *opaque)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   168
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   169
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, -1);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   170
} /* __PHYSFS_platformFileLength */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   171
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   172
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   173
int __PHYSFS_platformEOF(void *opaque)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   174
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   175
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, -1);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   176
} /* __PHYSFS_platformEOF */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   177
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   178
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   179
int __PHYSFS_platformFlush(void *opaque)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   180
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   181
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   182
} /* __PHYSFS_platformFlush */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   183
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   184
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   185
int __PHYSFS_platformClose(void *opaque)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   186
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   187
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   188
} /* __PHYSFS_platformClose */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   189
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   190
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   191
int __PHYSFS_platformDelete(const char *path)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   192
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   193
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, 0);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   194
} /* __PHYSFS_platformDelete */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   195
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   196
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   197
void *__PHYSFS_platformCreateMutex(void)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   198
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   199
    BAIL_MACRO(ERR_NOT_IMPLEMENTED, NULL);
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   200
} /* __PHYSFS_platformCreateMutex */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   201
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   202
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   203
void __PHYSFS_platformDestroyMutex(void *mutex)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   204
{
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   205
} /* __PHYSFS_platformDestroyMutex */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   206
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   207
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   208
int __PHYSFS_platformGrabMutex(void *mutex)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   209
{
156
f45e26b5f398 Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
   210
    /* not implemented, but can't call __PHYSFS_setError! */
f45e26b5f398 Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
   211
    return(0);
152
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   212
} /* __PHYSFS_platformGrabMutex */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   213
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   214
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   215
void __PHYSFS_platformReleaseMutex(void *mutex)
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   216
{
156
f45e26b5f398 Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents: 152
diff changeset
   217
    /* not implemented, but can't call __PHYSFS_setError! */
152
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   218
} /* __PHYSFS_platformReleaseMutex */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   219
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   220
/* end of skeleton.c ... */
14927fc344b0 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   221