コード例 #1
0
ファイル: tagged_items.c プロジェクト: AudienceScience/wimlib
/* Set the inode's object ID to the value specified by @object_id and @len.
 * Assumes the inode didn't already have an object ID set.  Returns %true if
 * successful, %false if failed (out of memory).  */
bool
inode_set_object_id(struct wim_inode *inode, const void *object_id, u32 len)
{
	void *p;

	p = inode_add_tagged_item(inode, TAG_OBJECT_ID, len);
	if (!p)
		return false;

	memcpy(p, object_id, len);
	return true;
}
コード例 #2
0
ファイル: tagged_items.c プロジェクト: twwbond/wimlib
static inline struct wimlib_unix_data_disk *
inode_add_unix_data_disk(struct wim_inode *inode)
{
	return inode_add_tagged_item(inode, TAG_WIMLIB_UNIX_DATA,
				     sizeof(struct wimlib_unix_data_disk));
}