[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] syncing of creation/modification dates



On Wed, Oct 16, 2002 at 07:27:51AM -0400, Pierre Phaneuf wrote:
> Plucker creates a cache file on the Palm during usage, and updating a 
> Plucker document should invalidates this cache. The problem is that 
> Plucker invalidates that cache when the creation date on a document 
> changes, but neither the creation or the modification date are updated 
> by the generic conduit!
> 
> I could go and add this in GenericConduit.cc, but I wanted to check 
> first if that would be the best way to go at it.

	In "libpconn/dlp_cmd.c", there's an XXX comment that says that
as of PalmOS 3.0, you can update the creation and/or modification time
on a file when you close it, and suggests changing DlpCloseDB to
	int DlpCloseDB(PConnection *pconn,
		ubyte handle,
		ubyte flags)

	"include/pconn/dlp_cmd.h" already includes definitions for
		DLPCMD_CLOSEFL_UPBACKUP
		DLPCMD_CLOSEFL_UPMOD
presumably in anticipation of the change to DlpCloseDB.

	Obviously, each DlpCloseDB call would need to be examined,
because you don't want to update the creation time unless you've
created the database.

-- 
Andrew Arensburger                      This message *does* represent the
arensb@ooblick.com                      views of ooblick.com
	      Objectivity is in the eye of the beholder.

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.