summaryrefslogtreecommitdiff
path: root/vfs/uVFSprototypes.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-26 18:37:53 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-26 18:37:53 +0100
commit1764ca51847cff878acea4b0fa498288d61f3d17 (patch)
tree2224f9a508a233b1676ac13870c821f8d052585f /vfs/uVFSprototypes.pas
parent88131f070451c7ec4e4913da031436885377cdc5 (diff)
downloadtuxcmd-1764ca51847cff878acea4b0fa498288d61f3d17.tar.xz
Plugin interface: pass cancellation button id in ask_question callback
Diffstat (limited to 'vfs/uVFSprototypes.pas')
-rw-r--r--vfs/uVFSprototypes.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/vfs/uVFSprototypes.pas b/vfs/uVFSprototypes.pas
index 7cff78b..ba848e9 100644
--- a/vfs/uVFSprototypes.pas
+++ b/vfs/uVFSprototypes.pas
@@ -262,10 +262,12 @@ type
// Return index of the choice selected or negative number when dialog has been cancelled
+ // cancel_choice: index which represents the cancellation choice. Set to -1 (e.g.) to disable this feature
PVFSAskQuestionCallback = ^TVFSAskQuestionCallback;
TVFSAskQuestionCallback = procedure (const AMessage: PChar;
const Choices: PPChar;
choice: PInteger;
+ cancel_choice: Integer;
user_data: Pointer); cdecl;
PVFSAskPasswordCallback = ^TVFSAskPasswordCallback;