|
246 | 246 | release(true)
|
247 | 247 | ]).
|
248 | 248 |
|
249 |
| -%! qsave_foreign_libraries(+Arch, +FileSpec, -Resources, +Options). |
| 249 | +%! qsave_foreign_libraries(+Arch, +FileSpec, -Entries, +Options). |
250 | 250 | %
|
251 |
| -% Get list of foreign libraries compatible with Arch in the |
252 |
| -% current saved state. |
| 251 | +% Get list of foreign libraries compatible with Arch in the current |
| 252 | +% saved state. |
253 | 253 | %
|
254 | 254 | % Multi-architecture foreign libraries can be stored in the saved
|
255 |
| -% state by qsave_program/2. See the `foreign` option. Resources is |
256 |
| -% unified with a list of file paths (in the saved state) for the |
257 |
| -% foreign library named by FileSpec. FileSpec is of the form |
258 |
| -% `foreign(Name)`. Each resource starts with `res://` so it can |
259 |
| -% be used with most file predicates, including copy_file/2. The |
260 |
| -% predicate can return the main foreign library (which defines |
261 |
| -% prolog predicates in a foreign language) and possibly its |
| 255 | +% state by qsave_program/2. See the `foreign` option. Entries is |
| 256 | +% unified with a list of dicts of the form: `_{ entry: Resource, |
| 257 | +% basename: Base, type: Type }`. Each dict contains a description of |
| 258 | +% the entries in the saved state for FileSpec and compatible with |
| 259 | +% Arch. Resource starts with `res://` so it can be used |
| 260 | +% with most file predicates, including copy_file/2. `Base` is the |
| 261 | +% original base name of the file, this is especially useful for |
| 262 | +% dependencies which need to have the same name so that the linker |
| 263 | +% finds them. Type is either `main` or `dep` indicating the main |
| 264 | +% library or a dependency. |
| 265 | +% |
| 266 | +% The predicate can return only the main foreign library (which |
| 267 | +% defines prolog predicates in a foreign language) and possibly its |
262 | 268 | % dependencies according to the options.
|
263 | 269 | %
|
264 | 270 | % See qsave_program/2 to find out about how to store the
|
265 | 271 | % dependencies of a shared object.
|
266 | 272 | %
|
267 |
| -% This predicate also calls the qsave:compat_arch/2 hook to obtain |
268 |
| -% files compatible with Arch, see qsave_program/2. |
| 273 | +% This predicate also calls the qsave:compat_arch/2 hook to |
| 274 | +% determine architecture compatibility, see qsave_program/2. |
269 | 275 | %
|
270 | 276 | % The possible options are:
|
271 | 277 | % * main
|
|
275 | 281 | % Return the main foreign lirary and any dependencies that
|
276 | 282 | % were stored in the saved state. Resources is a list in this
|
277 | 283 | % case. This is the default option.
|
| 284 | +% * deps |
| 285 | +% Return only the dependencies. |
278 | 286 | % * plain
|
279 | 287 | % Do not return entries with the `res://` prefix, but
|
280 | 288 | % just the plain entry name in the saved state. This can
|
|
0 commit comments