/[osn-commons]/trunk/uar/uar.h
ViewVC logotype

Diff of /trunk/uar/uar.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by rakinar2, Wed Aug 7 18:57:45 2024 UTC revision 33 by rakinar2, Thu Aug 8 16:57:39 2024 UTC
# Line 30  enum uar_file_type Line 30  enum uar_file_type
30      UF_LINK      UF_LINK
31  };  };
32    
33    enum uar_error_level
34    {
35        UAR_ELEVEL_NONE,
36        UAR_ELEVEL_ERROR,
37        UAR_ELEVEL_WARNING,
38    };
39    
40  typedef bool (*uar_callback_t) (struct uar_archive *uar, struct uar_file *file,  typedef bool (*uar_callback_t) (struct uar_archive *uar, struct uar_file *file,
41                                  const char *uar_name, const char *fs_name);                                  const char *uar_name, const char *fs_name);
42    
43    typedef bool (*uar_create_callback_t) (
44        struct uar_archive *uar, struct uar_file *file, const char *uar_name,
45        const char *fs_name, enum uar_error_level level, const char *message);
46    
47    void uar_set_create_callback (struct uar_archive *uar,
48                                  uar_create_callback_t callback);
49    
50  struct uar_archive *uar_create (void);  struct uar_archive *uar_create (void);
51  struct uar_archive *uar_open (const char *filename);  struct uar_archive *uar_open (const char *filename);
52  struct uar_archive *uar_create_stream (void);  struct uar_archive *uar_create_stream (void);
# Line 72  void uar_file_destroy (struct uar_file * Line 86  void uar_file_destroy (struct uar_file *
86    
87  struct uar_file *uar_stream_add_entry (struct uar_archive *uar,  struct uar_file *uar_stream_add_entry (struct uar_archive *uar,
88                                         const char *uar_name,                                         const char *uar_name,
89                                         const char *fs_name, struct stat *stinfo,                                         const char *fs_name,
90                                         uar_callback_t callback);                                         struct stat *stinfo);
91  struct uar_file *uar_stream_add_dir (struct uar_archive *uar,  struct uar_file *uar_stream_add_dir (struct uar_archive *uar,
92                                       const char *uar_dirname,                                       const char *uar_dirname,
93                                       const char *fs_dirname,                                       const char *fs_dirname,
94                                       struct stat *stinfo,                                       struct stat *stinfo);
                                      uar_callback_t callback);  
95    
96  const char *uar_file_get_name (const struct uar_file *file);  const char *uar_file_get_name (const struct uar_file *file);
97  enum uar_file_type uar_file_get_type (const struct uar_file *file);  enum uar_file_type uar_file_get_type (const struct uar_file *file);

Legend:
Removed from v.32  
changed lines
  Added in v.33

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26