Exemplo n.º 1
0
/**
   \details Test dump of a folder move notification

   This function:
   -# Creates a FolderMoveCopyNotification structure
   -# Dumps that structure out using mapidump_foldermoved()
   -# Tests mapidump_foldermoved() with a null argument

   \param mt pointer to the top-level mapitest structure

   \return true on success, otherwise false
   
   \note This currently doesn't check the results are sane, so manual inspection is required
*/ 
_PUBLIC_ bool mapitest_mapidump_foldermoved(struct mapitest *mt)
{
	struct FolderMoveCopyNotification foldermovecopynotification;

	foldermovecopynotification.ParentFID = 0x9876CAFE432LL;
	foldermovecopynotification.FID = 0x1234ABCDLL;
	foldermovecopynotification.OldParentFID = 0x9876CAFE43201DLL;
	foldermovecopynotification.OldFID = 0x1234ABCD01DLL;
	mapidump_foldermoved(&foldermovecopynotification, "[sep]");
	
	mapidump_foldermoved(0, "[sep]");

	return true;
}
Exemplo n.º 2
0
_PUBLIC_ void mapidump_foldercopied(struct FolderMoveCopyNotification *data, const char *sep)
{
	mapidump_foldermoved(data, sep);
}