/[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 25 by rakinar2, Tue Aug 6 13:06:45 2024 UTC revision 30 by rakinar2, Tue Aug 6 14:24:41 2024 UTC
# Line 20  enum uar_error Line 20  enum uar_error
20      UAR_SYSTEM_ERROR      UAR_SYSTEM_ERROR
21  };  };
22    
23    enum uar_file_type
24    {
25        UF_FILE,
26        UF_DIR,
27        UF_LINK
28    };
29    
30  struct uar_archive *uar_open (const char *filename);  struct uar_archive *uar_open (const char *filename);
31  bool uar_has_error (const struct uar_archive *restrict uar);  bool uar_has_error (const struct uar_archive *restrict uar);
32  void uar_close (struct uar_archive *uar);  void uar_close (struct uar_archive *uar);
# Line 29  struct uar_file *uar_add_file (struct ua Line 36  struct uar_file *uar_add_file (struct ua
36                                 const char *name, const char *path);                                 const char *name, const char *path);
37  void uar_file_set_mode (struct uar_file *file, mode_t mode);  void uar_file_set_mode (struct uar_file *file, mode_t mode);
38  bool uar_write (struct uar_archive *uar, const char *filename);  bool uar_write (struct uar_archive *uar, const char *filename);
39  struct uar_file *uar_add_dir (struct uar_archive *uar, const char *name,  struct uar_file *
40                                const char *path);  uar_add_dir (struct uar_archive *uar, const char *name, const char *path,
41                 bool (*callback) (struct uar_file *file, const char *fullname,
42                                   const char *fullpath));
43  bool uar_extract (struct uar_archive *uar, const char *cwd,  bool uar_extract (struct uar_archive *uar, const char *cwd,
44                    bool (*callback) (struct uar_file *file));                    bool (*callback) (struct uar_file *file));
45  const char *uar_get_file_name (const struct uar_file *file);  const char *uar_get_file_name (const struct uar_file *file);
46    enum uar_file_type uar_get_entry_type (const struct uar_file *file);
47    
48  #ifndef NDEBUG  #ifndef NDEBUG
49  void uar_debug_print (const struct uar_archive *uar, bool print_file_contents);  void uar_debug_print (const struct uar_archive *uar, bool print_file_contents);

Legend:
Removed from v.25  
changed lines
  Added in v.30

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26