This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Plugin interface descriptions for TC 7.55 (beta)
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35752
Location: Switzerland

PostPosted: Fri Mar 26, 2010 4:17 am    Post subject: Plugin interface descriptions for TC 7.55 (beta) Reply with quote

There have been 3 major improvements to the plugin interfaces in TC 7.55:
1. Background packing and unpacking with packer plugins
2. Background uploads and downloads with file system plugins
3. Custom compare functions for synchronize dirs

Plugin reference help files:

Packer plugins:
http://ghisler.fileburst.com/beta/wcx_ref2.21beta.zip
Lister plugins:
There is no change to the lister plugin interface.
File system plugins:
http://ghisler.fileburst.com/beta/fspluginhelp2.1beta.zip
Content plugins:
http://ghisler.fileburst.com/beta/contentpluginhelp210beta.zip

Here are some beta plugins supporting these new functions:
1. Background packing+unpacking: Bzip2 plugin v1.2 and sources
2a. Background file system plugin: sftp 0.97 beta and sources
2b. Background file system plugin: WinCE / Mobile and sources
3. Content plugin with compare function (for sync): wdx_filesys sample and sources
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8037
Location: Russian Federation

PostPosted: Fri Mar 26, 2010 4:36 am    Post subject: Reply with quote

As I see, there is no changes yet in FsExecuteFile function description regarding returning file path in RemoteName parameter for temporary panels.
Please tell me how many characters I may write to RemoteName buffer while returning FS_EXECUTE_YOURSELF (for both FsExecuteFile and FsExecuteFileW functions).
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35752
Location: Switzerland

PostPosted: Fri Mar 26, 2010 5:33 am    Post subject: Reply with quote

If the version reported is 2.0 or newer, you may return up to 1023 characters (plus terminating 0). If it's older, you may return up to 259 characters (plus terminating 0). Do not include any prefix for extra-long names.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8037
Location: Russian Federation

PostPosted: Fri Mar 26, 2010 5:48 am    Post subject: Reply with quote

Thanks, I've set buffer size to 1024 for 2.0 and 260 for earlier versions (including null character).
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
tbeu
Power Member
Power Member


Joined: 04 Jul 2003
Posts: 1196
Location: Germany

PostPosted: Sat Mar 27, 2010 4:11 am    Post subject: Reply with quote

In contentpluginhelp210beta.zip, on page contplug.h the first comment should read the correct plugin version number 2.10 instead of 1.5.
_________________
TC plugins: Autodesk 3ds Max Preview, Autodesk Revit Preview, Blat Mailer, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35752
Location: Switzerland

PostPosted: Sun Mar 28, 2010 7:39 am    Post subject: Reply with quote

Fixed, thanks!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tbeu
Power Member
Power Member


Joined: 04 Jul 2003
Posts: 1196
Location: Germany

PostPosted: Mon Apr 19, 2010 1:42 pm    Post subject: Typo in contentpluginhelp210beta.zip Reply with quote

In contentpluginhelp210beta.zip, on page ContentGetSupportedFieldFlags the description for contflags_substmask should start with "A combination of all above substitution flags."
_________________
TC plugins: Autodesk 3ds Max Preview, Autodesk Revit Preview, Blat Mailer, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35752
Location: Switzerland

PostPosted: Tue Apr 20, 2010 9:40 am    Post subject: Reply with quote

Fixed, thanks!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 3140
Location: Moscow, Russia

PostPosted: Mon Apr 26, 2010 7:55 am    Post subject: Reply with quote

ghisler(Author)
A small request for the FS-plugin interface: if the return value is ft_stringw, please, increase the supported buffer length to 1024 characters (2048 bytes).

Reason: If there is a temporary panel plugin which contains a field with source file path, it can return long paths via FsGetLocalNameW, but in FsContentGetValueW maxlen is measured in bytes, so it's impossible to return source path longer than 511 wide characters.


BTW, header in the fsplugin.h still tells "version 2.0". Should not it be 2.1 instead? Or did you plan to change it after the 7.55 final?
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 9.20rc2 / Win7 x32 & x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35752
Location: Switzerland

PostPosted: Mon Apr 26, 2010 9:55 am    Post subject: Reply with quote

Hmm, a quick glance at the code shows that 1023 characters should work - what size value is sent to the plugin as maximum possible length?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 3140
Location: Moscow, Russia

PostPosted: Mon Apr 26, 2010 10:16 am    Post subject: Reply with quote

ghisler(Author)
Ah, sorry, I misinterpreted what I saw. Probably I looked at maxlen value when TC was retrieving another field. Now I checked — indeed, maxlen=2047. The problem is that TC cuts the path when I show it in the custom column (by 258 characters). So, it's not a plugin interface restriction, but that of TC interface.
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 9.20rc2 / Win7 x32 & x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 3140
Location: Moscow, Russia

PostPosted: Wed May 05, 2010 8:15 am    Post subject: Reply with quote

Why are the parameters CustomTitle and CustomText in the function tRequestProc[W] are char* and not const char*? Does TC change them?

The problem is that I wanted to pass a constant string to tRequestProcW, but got a compiler message about it. Currently I changed the function definition to take constant string, but if TC suddenly tries to modify them, it will result in AV. Can I call RequestProcW(…, L"SomeTitle", …); or do I need to make a writable copy of the "SomeTitle" first?
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 9.20rc2 / Win7 x32 & x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35752
Location: Switzerland

PostPosted: Thu May 06, 2010 9:45 am    Post subject: Reply with quote

I have just checked it - TC does not modify them. Only ReturnedText is modified.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 3140
Location: Moscow, Russia

PostPosted: Thu May 06, 2010 11:23 am    Post subject: Reply with quote

ghisler(Author)
Thanks for the information. In this case, char* should be replaced with const char* in the header file to avoid this ambiguity.
_________________
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
 
Using TC 9.20rc2 / Win7 x32 & x64 SP1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8037
Location: Russian Federation

PostPosted: Mon Jul 12, 2010 3:21 am    Post subject: Reply with quote

BTW error was found in WCX interface HLP file:
Quote:
The following functions do not exist in a Unicode form and must be implemented as Ansi:

ReadHeader - use ReadHeaderEx
CloseArchive
GetPackerCaps
ConfigurePacker
PackToMem
DoneMemPack
PackSetDefaultParams
ReadHeaderEx

_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group