Added getter and setter for mtime on tree_node.
This commit is contained in:
parent
3160ed761e
commit
6a9689fb82
@ -897,6 +897,12 @@ mode_t iso_tree_node_get_permissions(struct iso_tree_node *node);
|
|||||||
/** Get the size of the node, in bytes */
|
/** Get the size of the node, in bytes */
|
||||||
off_t iso_tree_node_get_size(struct iso_tree_node *node);
|
off_t iso_tree_node_get_size(struct iso_tree_node *node);
|
||||||
|
|
||||||
|
/** Set the time of last modification of the file */
|
||||||
|
void iso_tree_node_set_mtime(struct iso_tree_node *node, time_t time);
|
||||||
|
|
||||||
|
/** Get the time of last modification of the file */
|
||||||
|
time_t iso_tree_node_get_mtime(struct iso_tree_node *node);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the order in which a node will be written on image. High weihted files
|
* Sets the order in which a node will be written on image. High weihted files
|
||||||
* will be written first, so in a disc them will be written near the center.
|
* will be written first, so in a disc them will be written near the center.
|
||||||
|
@ -229,6 +229,18 @@ iso_tree_node_get_size(struct iso_tree_node *node)
|
|||||||
return node->attrib.st_size;
|
return node->attrib.st_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
iso_tree_node_set_mtime(struct iso_tree_node *node, time_t time)
|
||||||
|
{
|
||||||
|
node->attrib.st_mtime = time;
|
||||||
|
}
|
||||||
|
|
||||||
|
time_t
|
||||||
|
iso_tree_node_get_mtime(struct iso_tree_node *node)
|
||||||
|
{
|
||||||
|
return node->attrib.st_mtime;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
iso_tree_node_set_sort_weight(struct iso_tree_node *node, int w)
|
iso_tree_node_set_sort_weight(struct iso_tree_node *node, int w)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user