Index

Package: Allegro.Files

Description

package Allegro.Files is

Types

Packfile

type Packfile is private;

References:

allegro-files.ads:49:10 (declaration)
allegro-files.ads:50:35 (reference)
allegro-files.ads:143:10 (full declaration)

A_Packfile

type A_Packfile is access all Packfile;

References:

allegro-files.ads:50:10 (declaration)
allegro-datafiles.ads:24:30 (reference)
allegro-digital_samples.ads:46:40 (reference)
allegro-digital_samples.ads:50:40 (reference)
allegro-files-memory.adb:152:62 (reference)
allegro-files-memory.ads:12:62 (reference)
allegro-files.adb:36:40 (reference)
allegro-files.adb:46:38 (reference)
allegro-files.adb:48:35 (reference)
allegro-files.adb:57:40 (reference)
allegro-files.adb:59:37 (reference)
allegro-files.adb:68:59 (reference)
allegro-files.adb:70:71 (reference)
allegro-files.adb:79:45 (reference)
allegro-files.adb:79:81 (reference)
allegro-files.adb:81:42 (reference)
allegro-files.adb:81:78 (reference)
allegro-files.adb:94:39 (reference)
allegro-files.adb:96:36 (reference)
allegro-files.ads:110:59 (reference)
allegro-files.ads:112:45 (reference)
allegro-files.ads:112:81 (reference)
allegro-files.ads:115:61 (reference)
allegro-files.ads:118:40 (reference)
allegro-files.ads:120:40 (reference)
allegro-files.ads:122:46 (reference)
allegro-files.ads:122:66 (reference)
allegro-files.ads:124:38 (reference)
allegro-files.ads:126:40 (reference)
allegro-files.ads:128:65 (reference)
allegro-files.ads:131:39 (reference)
allegro-files.ads:133:66 (reference)
allegro-files.ads:135:38 (reference)
allegro-files.ads:137:39 (reference)
allegro-files.ads:139:51 (reference)
allegro-image_files.adb:98:31 (reference)
allegro-image_files.adb:100:37 (reference)
allegro-image_files.adb:120:31 (reference)
allegro-image_files.adb:122:37 (reference)
allegro-image_files.adb:142:31 (reference)
allegro-image_files.adb:144:37 (reference)
allegro-image_files.ads:84:40 (reference)
allegro-image_files.ads:107:31 (reference)
allegro-image_files.ads:113:31 (reference)
allegro-image_files.ads:119:31 (reference)
archives-zip_archives.adb:176:47 (reference)
archives-zip_archives.adb:181:22 (reference)
archives-zip_archives.ads:40:47 (reference)
archives.ads:41:47 (reference)
audio_players-cache.adb:142:15 (reference)
resources-images.adb:14:21 (reference)
resources.adb:145:65 (reference)
resources.ads:67:65 (reference)
streams-packfiles.adb:11:35 (reference)
streams-packfiles.ads:18:35 (reference)
streams-packfiles.ads:32:20 (reference)
tiles-indices.adb:103:20 (reference)
loadpng.ads:35:41 (reference)

A_pf_fclose_proc

type A_pf_fclose_proc is
        access function( userdata : Address ) return Integer;

References:

allegro-files.ads:52:10 (declaration)
allegro-files.ads:85:25 (reference)
allegro-files.ads:147:27 (reference)

A_pf_getc_proc

type A_pf_getc_proc is
        access function( userdata : Address ) return Integer;

References:

allegro-files.ads:55:10 (declaration)
allegro-files.ads:86:25 (reference)
allegro-files.ads:148:27 (reference)

A_pf_ungetc_proc

type A_pf_ungetc_proc is
        access function( c : Integer; userdata : Address ) return Integer;

References:

allegro-files.ads:58:10 (declaration)
allegro-files.ads:87:25 (reference)
allegro-files.ads:149:27 (reference)

A_pf_fread_proc

type A_pf_fread_proc is
        access function( p        : Address;
                         n        : Interfaces.C.long;
                         userdata : Address ) return Interfaces.C.long;

References:

allegro-files.ads:61:10 (declaration)
allegro-files.ads:88:25 (reference)
allegro-files.ads:150:27 (reference)

A_pf_putc_proc

type A_pf_putc_proc is
        access function( c : Integer; userdata : Address ) return Integer;

References:

allegro-files.ads:66:10 (declaration)
allegro-files.ads:89:25 (reference)
allegro-files.ads:151:27 (reference)

A_pf_fwrite_proc

type A_pf_fwrite_proc is
        access function( p        : Address;
                         n        : Interfaces.C.long;
                         userdata : Address ) return Interfaces.C.long;

References:

allegro-files.ads:69:10 (declaration)
allegro-files.ads:90:25 (reference)
allegro-files.ads:152:27 (reference)

A_pf_seek_proc

type A_pf_seek_proc is
        access function( userdata : Address; offset : Integer ) return Integer;

References:

allegro-files.ads:74:10 (declaration)
allegro-files.ads:91:25 (reference)
allegro-files.ads:153:27 (reference)

A_pf_feof_proc

type A_pf_feof_proc is
        access function( userdata : Address ) return Integer;

References:

allegro-files.ads:77:10 (declaration)
allegro-files.ads:92:25 (reference)
allegro-files.ads:154:27 (reference)

A_pf_ferror_proc

type A_pf_ferror_proc is
        access function( userdata : Address ) return Integer;

References:

allegro-files.ads:80:10 (declaration)
allegro-files.ads:93:25 (reference)
allegro-files.ads:155:27 (reference)

Packfile_Vtable

type Packfile_Vtable is
        record
            pf_fclose : A_pf_fclose_proc;
            pf_getc   : A_pf_getc_proc;
            pf_ungetc : A_pf_ungetc_proc;
            pf_fread  : A_pf_fread_proc;
            pf_putc   : A_pf_putc_proc;
            pf_fwrite : A_pf_fwrite_proc;
            pf_fseek  : A_pf_seek_proc;
            pf_feof   : A_pf_feof_proc;
            pf_ferror : A_pf_ferror_proc;
        end record;

References:

allegro-files.ads:83:10 (declaration)
allegro-files-memory.adb:137:13 (reference)
allegro-files.ads:95:42 (reference)
allegro-files.ads:157:27 (reference)

A_Packfile_Vtable

type A_Packfile_Vtable is access all Packfile_Vtable;

References:

allegro-files.ads:95:10 (declaration)
allegro-files-memory.adb:136:27 (reference)
allegro-files.ads:114:44 (reference)

Subprograms & Entries

Find_Allegro_Resource

function Find_Allegro_Resource
( resource: String;
ext, datafile, objectname, envvar, subdir: String := "" )
return String;

References:

allegro-files.ads:99:14 (declaration)
allegro-files.adb:6:14 (body)
allegro-files.adb:32:9 (label)

Calls:

Allegro.Files.Find_Allegro_Resource.C_Find_Allegro_Resource defined at allegro-files.adb:13:18
To_Ada defined at i-c.ads:88:13
To_C defined at i-c.ads:84:13

Set_Allegro_Resource_Path

procedure Set_Allegro_Resource_Path
( priority: Integer;
path: String );

References:

allegro-files.ads:106:15 (declaration)
allegro-files.adb:116:15 (body)
allegro-files.adb:126:9 (label)

Calls:

Allegro.Files.Set_Allegro_Resource_Path.C_Set_Allegro_Resource_Path defined at allegro-files.adb:118:18
To_C defined at i-c.ads:84:13

Packfile_Password

procedure Packfile_Password
( password: String );

References:

allegro-files.ads:108:15 (declaration)
allegro-files.adb:105:15 (body)
allegro-files.adb:112:9 (label)

Calls:

Allegro.Files.Packfile_Password.C_Packfile_Password defined at allegro-files.adb:107:19
To_C defined at i-c.ads:84:13

Pack_FOpen

function Pack_FOpen
( filename, mode: String )
return A_Packfile;

References:

allegro-files.ads:110:14 (declaration)
allegro-files.adb:68:14 (body)
allegro-files.adb:75:9 (label)
streams-packfiles.adb:49:26 (reference)

Calls:

Allegro.Files.Pack_FOpen.C_Pack_FOpen defined at allegro-files.adb:70:18
To_C defined at i-c.ads:84:13

Pack_FOpen_Chunk

function Pack_FOpen_Chunk
( f: not null A_Packfile;
pack: Boolean )
return A_Packfile;

References:

allegro-files.ads:112:14 (declaration)
allegro-files.adb:79:14 (body)
allegro-files.adb:90:9 (label)

Calls:

Allegro.Files.Pack_FOpen_Chunk.C_Pack_FOpen_Chunk defined at allegro-files.adb:81:18

Pack_FOpen_Vtable

function Pack_FOpen_Vtable
( vtable: A_Packfile_Vtable;
userdata: Address )
return A_Packfile;

References:

allegro-files.ads:114:14 (declaration)
allegro-files-memory.adb:155:16 (reference)
allegro-files.ads:161:23 (body)

Pack_FClose

function Pack_FClose
( f: not null A_Packfile )
return Integer;

References:

allegro-files.ads:118:14 (declaration)
allegro-files.adb:40:16 (reference)
allegro-files.ads:159:23 (body)

Called by:

Pack_FClose0 defined at allegro-files.ads:120:15
Returns 0 on success, otherwise an error code.

Pack_FClose0

procedure Pack_FClose0
( f: in out A_Packfile );

References:

allegro-files.ads:120:15 (declaration)
allegro-files.adb:36:15 (body)
allegro-files.adb:42:9 (label)
audio_players-cache.adb:151:9 (reference)
resources-images.adb:41:9 (reference)
resources-images.adb:45:13 (reference)
streams-packfiles.adb:24:17 (reference)
tiles-indices.adb:110:9 (reference)
tiles-indices.adb:115:13 (reference)

Called by:

Audio_Players.Cache.Construct defined at audio_players-cache.ads:90:15
Resources.Images.Load_BMP defined at resources-images.adb:13:14
Resources.Images.Load_BMP defined at resources-images.adb:13:14
Streams.Packfiles.Close defined at streams-packfiles.ads:21:15
Tiles.Indices.Load_Index defined at tiles-indices.ads:21:14
Tiles.Indices.Load_Index defined at tiles-indices.ads:21:14

Pack_FClose_Chunk

function Pack_FClose_Chunk
( f: not null A_Packfile )
return A_Packfile;

References:

allegro-files.ads:122:14 (declaration)
allegro-files.ads:160:23 (body)

Pack_FEOF

function Pack_FEOF
( f: not null A_Packfile )
return Boolean;

References:

allegro-files.ads:124:14 (declaration)
allegro-files.adb:46:14 (body)
allegro-files.adb:53:9 (label)
streams-packfiles.adb:34:16 (reference)

Calls:

Allegro.Files.Pack_FEOF.C_Pack_FEOF defined at allegro-files.adb:48:18

Pack_FError

function Pack_FError
( f: not null A_Packfile )
return Boolean;

References:

allegro-files.ads:126:14 (declaration)
allegro-files.adb:57:14 (body)
allegro-files.adb:64:9 (label)
streams-packfiles.adb:41:16 (reference)

Calls:

Allegro.Files.Pack_FError.C_Pack_FError defined at allegro-files.adb:59:18

Pack_FRead

function Pack_FRead
( p: Address;
n: Integer;
f: not null A_Packfile )
return Integer;

References:

allegro-files.ads:128:14 (declaration)
allegro-files.ads:162:23 (body)
streams-packfiles.adb:66:13 (reference)

Called by:

Streams.Packfiles.Read defined at streams-packfiles.ads:39:15

Pack_FSeek

function Pack_FSeek
( f: not null A_Packfile;
offset: Integer )
return Boolean;

References:

allegro-files.ads:131:14 (declaration)
allegro-files.adb:94:14 (body)
allegro-files.adb:101:9 (label)

Calls:

Allegro.Files.Pack_FSeek.C_Pack_FSeek defined at allegro-files.adb:96:18
Returns True on success.

Pack_FWrite

function Pack_FWrite
( p: Address;
n: Integer;
f: not null A_Packfile )
return Integer;

References:

allegro-files.ads:133:14 (declaration)
allegro-files.ads:163:23 (body)
streams-packfiles.adb:77:16 (reference)

Called by:

Streams.Packfiles.Write defined at streams-packfiles.ads:43:15

Pack_GetC

function Pack_GetC
( f: not null A_Packfile )
return Integer;

References:

allegro-files.ads:135:14 (declaration)
allegro-files.ads:164:23 (body)

Pack_IGetL

function Pack_IGetL
( f: not null A_Packfile )
return Integer;

References:

allegro-files.ads:137:14 (declaration)
allegro-files.ads:165:23 (body)

Pack_PutC

function Pack_PutC
( c: Integer;
f: not null A_Packfile )
return Integer;

References:

allegro-files.ads:139:14 (declaration)
allegro-files.ads:166:23 (body)