|
27 | 27 | #include "stringAPI.h" |
28 | 28 | #include "bufferAPI.h" |
29 | 29 | #include "../base/Handle.h" |
| 30 | +#include "../base/TemporaryCallback.h" |
30 | 31 | #include "../settings.h" |
31 | 32 |
|
32 | 33 | // The file API exists to save and load buffers of data for any type of file. |
@@ -98,7 +99,7 @@ namespace dsr { |
98 | 99 | // The first entry must be something selectable to be included. Otherwise it is ignored. |
99 | 100 | // C: would be returned as an entry, because other drives can be selected. |
100 | 101 | // The implicit Windows drive \ and Posix system root / will not be returned, because they are implicit and can't be replaced in the path. |
101 | | - void file_getPathEntries(const ReadableString& path, Callback<void(ReadableString, int64_t, int64_t)> action); |
| 102 | + void file_getPathEntries(const ReadableString& path, const TemporaryCallback<void(ReadableString, int64_t, int64_t)> &action); |
102 | 103 |
|
103 | 104 | // Path-syntax: Depends on pathSyntax argument. |
104 | 105 | // Turns / and \ into the path convention specified by pathSyntax, which is the local system's by default. |
@@ -258,7 +259,7 @@ namespace dsr { |
258 | 259 | // entryName equals file_getPathlessName(entryPath). |
259 | 260 | // entryType equals file_getEntryType(entryPath). |
260 | 261 | // Post-condition: Returns true iff the folder could be found. |
261 | | - bool file_getFolderContent(const ReadableString& folderPath, Callback<void(const ReadableString& entryPath, const ReadableString& entryName, EntryType entryType)> action); |
| 262 | + bool file_getFolderContent(const ReadableString& folderPath, const TemporaryCallback<void(const ReadableString& entryPath, const ReadableString& entryName, EntryType entryType)> &action); |
262 | 263 |
|
263 | 264 | // Path-syntax: According to the local computer. |
264 | 265 | // Access permissions: Default settings according to the local operating system, either inherited from the parent folder or no specific restrictions. |
|
0 commit comments