From c0963596e5283a0328d71faeacce89f3bc515aee Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 20 Jun 2010 09:18:30 +0200 Subject: [PATCH] New API call iso_node_get_hidden(). --- libisofs/libisofs.h | 14 ++++++++++++++ libisofs/node.c | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index 1360592..8cb6740 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -795,6 +795,7 @@ struct IsoStream_Iface /** * Type of Stream. * "fsrc" -> Read from file source + * "cout" -> Cut out interval from disk file * "mem " -> Read from memory * "boot" -> Boot catalog * "extf" -> External filter program @@ -3009,6 +3010,19 @@ time_t iso_node_get_ctime(const IsoNode *node); */ void iso_node_set_hidden(IsoNode *node, int hide_attrs); +/** + * Get the hide_attrs as eventually set by iso_node_set_hidden(). + * + * @param node + * The node to inquire. + * @return + * Or-combination of values from enum IsoHideNodeFlag which are + * currently set for the node. + * + * @since 0.6.34 + */ +int iso_node_get_hidden(IsoNode *node); + /** * Compare two nodes whether they are based on the same input and * can be considered as hardlinks to the same file objects. diff --git a/libisofs/node.c b/libisofs/node.c index 531af42..6d09ad5 100644 --- a/libisofs/node.c +++ b/libisofs/node.c @@ -432,6 +432,12 @@ void iso_node_set_hidden(IsoNode *node, int hide_attrs) } } +int iso_node_get_hidden(IsoNode *node) +{ + return node->hidden; +} + + /** * Add a new node to a dir. Note that this function don't add a new ref to * the node, so you don't need to free it, it will be automatically freed