summaryrefslogtreecommitdiff
path: root/src/lib/Eet.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-10-31 05:55:53 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-10-31 05:55:53 +0000
commit87b2de8a2160ed48e5a267b3954755d0c04ceec5 (patch)
treef61863e934535244820841c96688559ca3e3b57f /src/lib/Eet.h
parent0fa23ebd7cde199146cf72a89beafd8078651773 (diff)
downloadeet-87b2de8a2160ed48e5a267b3954755d0c04ceec5.tar.gz
eet: add a more verbose eet -l.
SVN revision: 78689
Diffstat (limited to 'src/lib/Eet.h')
-rw-r--r--src/lib/Eet.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/Eet.h b/src/lib/Eet.h
index fccfc18..b794ad1 100644
--- a/src/lib/Eet.h
+++ b/src/lib/Eet.h
@@ -538,6 +538,27 @@ typedef struct _Eet_File Eet_File;
typedef struct _Eet_Dictionary Eet_Dictionary;
/**
+ * @typedef Eet_Entries
+ * Eet files may contains multiple Entries per file, this handle describe them. You can get that handle from an iterator given by eet_list_entries().
+ *
+ * @see eet_list_entries()
+ * @since 1.8.0
+ */
+typedef struct _Eet_Entry Eet_Entry;
+struct _Eet_Entry
+{
+ const char *name; /**< The entry name */
+
+ int offset; /**< Where it start in the file */
+ int size; /**< The size on disk */
+ int data_size; /**< The decompressed size if relevant */
+
+ Eina_Bool compression; /**< Is this data compressed ? */
+ Eina_Bool ciphered; /**< Is it ciphered ? */
+ Eina_Bool alias; /**< Is it an alias ? */
+};
+
+/**
* @}
*/
@@ -892,6 +913,17 @@ eet_list(Eet_File *ef,
int *count_ret);
/**
+ * Return an iterator that will describe each entry of an Eet_File.
+ * @param ef A valid eet file handle.
+ * @return An interator of Eet_Entry.
+ *
+ * @since 1.8.0
+ * @ingroup Eet_File_Group
+ */
+
+EAPI Eina_Iterator *eet_list_entries(Eet_File *ef);
+
+/**
* Return the number of entries in the specified eet file.
* @param ef A valid eet file handle.
* @return Number of entries in ef or -1 if the number of entries