shortened fieldnames of pts_file_metadata_t struct
[strongswan.git] / src / libpts / pts / pts_file_meta.h
index 36a4b62..851f88e 100644 (file)
@@ -36,15 +36,15 @@ typedef struct pts_file_metadata_t pts_file_metadata_t;
  * Structure holding file metadata
  */
 struct pts_file_metadata_t {
-       u_int16_t                       meta_length;
-       pts_file_type_t         type;
-       u_int64_t                       filesize;
-       time_t                          create_time;
-       time_t                          last_modify_time;
-       time_t                          last_access_time;
-       u_int64_t                       owner_id;
-       u_int64_t                       group_id;
-       char                            *filename;
+       u_int16_t        meta_length;
+       pts_file_type_t  type;
+       u_int64_t        filesize;
+       time_t           created;
+       time_t           modified;
+       time_t           accessed;
+       u_int64_t        owner;
+       u_int64_t        group;
+       char             *filename;
 };
 
 /**
@@ -60,14 +60,12 @@ struct pts_file_meta_t {
        int (*get_file_count)(pts_file_meta_t *this);
 
        /**
-        * Add PTS File Metadata
+        * Add PTS File Metadata
         *
         * @param filename              Name of measured file or directory
         * @param metadata              File metadata
         */
-       void (*add)(pts_file_meta_t *this, char *filename, pts_file_type_t type,
-                       u_int64_t filesize, time_t create_time, time_t last_modfy_time, time_t last_access_time,
-                       u_int64_t owner_id, u_int64_t group_id);
+       void (*add)(pts_file_meta_t *this, pts_file_metadata_t *metadata);
 
        /**
          * Create a PTS File Metadata enumerator