示例#1
0
/**
 * mate_vfs_set_file_info_uri:
 * @uri: a uri.
 * @info: information that must be set for the file.
 * @mask: bit mask representing which fields of @info need to be set.
 *
 * Set file information for @uri; only the information for which the
 * corresponding bit in @mask is set is actually modified.
 *
 * <note>
 * @info's %valid_fields is not required to contain the
 * #MateVFSFileInfoFields corresponding to the specified 
 * #MateVFSSetFileInfoMask fields of @mask. It
 * is assumed that the @info fields referenced by @mask
 * are valid.
 * </note>
 * 
 * Return value: an integer representing the result of the operation.
 */
MateVFSResult
mate_vfs_set_file_info_uri (MateVFSURI *uri,
			     MateVFSFileInfo *info,
			     MateVFSSetFileInfoMask mask)
{
	return mate_vfs_set_file_info_cancellable (uri, info, mask, NULL);
}
static MateVFSResult
do_set_file_info (MateVFSMethod *method,
		  MateVFSURI *uri,
		  const MateVFSFileInfo *info,
		  MateVFSSetFileInfoMask mask,
		  MateVFSContext *context)
{	
	PERFORM_OPERATION (set_file_info, mate_vfs_set_file_info_cancellable (uri, info, mask, context));
}