-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
copy.h
34 lines (23 loc) · 1.06 KB
/
copy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Functions for unpacking and copying files with status bar update */
#ifndef __COPY_H__
#define __COPY_H__
#include <sys/types.h>
#include "install.h"
/* Copy a path to the destination directory */
extern ssize_t copy_path(install_info *info, const char *path,
const char *dest, const char *cdrom, int strip_dirs,
const char* suffix,
xmlNodePtr node,
UIUpdateFunc update);
/* Copy an option tree to the destination directory */
extern ssize_t copy_tree(install_info *info, xmlNodePtr node, const char *dest,
UIUpdateFunc update);
/* Get the install size of an option node, in bytes */
extern unsigned long long size_node(install_info *info, xmlNodePtr node);
/* Get the install size of an option tree, in bytes */
extern unsigned long long size_tree(install_info *info, xmlNodePtr node);
/* See whether or not an XML file contains binary entries */
extern int has_binaries(install_info *info, xmlNodePtr node);
/* Utility function to parse a line in the XML file */
extern int parse_line(const char **srcpp, char *buf, int maxlen);
#endif