1pack_fopen_vtable(3) Allegro manual pack_fopen_vtable(3)
2
3
4
6 pack_fopen_vtable - Allegro game programming library.
7
9 #include <allegro.h>
10
11
12 PACKFILE *pack_fopen_vtable(const PACKFILE_VTABLE *vtable, void *user‐
13 data);
14
16 Creates a new packfile structure that uses the functions specified in
17 the vtable instead of the standard functions. The data pointer by
18 `vtable' and `userdata' must remain available for the lifetime of the
19 created packfile.
20
21 While the created packfile structure can be used with other Allegro
22 functions, there are two limitations. First, opening chunks using
23 pack_fopen_chunk() on top of the returned packfile is not possible at
24 this time. And packfile_password() does not have any effect on pack‐
25 files opened with pack_fopen_vtable().
26
28 On success, it returns a pointer to a PACKFILE structure, and on error
29 it returns NULL and stores an error code in `errno'.
30
31
33 pack_fopen(3), pack_fopen_chunk(3), packfile_password(3), expackf(3)
34
35
36
37Allegro version 4.2.3 pack_fopen_vtable(3)