Subversion Repositories Kolibri OS

Rev

Rev 5737 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5737 Rev 5809
Line 6... Line 6...
6
 
6
 
Line 7... Line 7...
7
#include "list.h"
7
#include "list.h"
8
 
8
 
9
typedef struct
9
typedef struct
10
{
10
{
11
    list_t  groups;
11
    list_t packages;
Line 12... Line -...
12
    char   *issue;
-
 
13
}collection_t;
-
 
14
 
-
 
15
typedef struct
-
 
16
{
-
 
17
    list_t list;
-
 
18
    list_t packages;
-
 
19
    char   *name;
12
    char   *issue;
20
}pkg_group_t;
13
}collection_t;
21
 
14
 
22
typedef struct package
15
typedef struct package
23
{
16
{
24
    list_t list;
17
    list_t list;
25
    list_t file_list;
18
    list_t file_list;
-
 
19
    int    id;
26
    int    id;
20
    char   *name;
27
    char   *name;
21
    char   *version;
28
    char   *version;
22
    char   *group;
Line 29... Line 23...
29
    char   *filename;
23
    char   *filename;
30
    char   *description;
24
    char   *description;
31
}package_t;
25
}package_t;
32
 
26
 
33
static inline void list_del_pkg(package_t *pkg)
27
static inline void list_del_pkg(package_t *pkg)
-
 
28
{
34
{
29
    list_del(&pkg->list);
35
    list_del(&pkg->list);
30
    free(pkg->description);
36
    free(pkg->description);
31
    free(pkg->filename);
37
    free(pkg->filename);
32
    free(pkg->group);
Line 38... Line 33...
38
    free(pkg->version);
33
    free(pkg->version);
39
    free(pkg->name);
34
    free(pkg->name);
Line -... Line 35...
-
 
35
    free(pkg);
-
 
36
};
40
    free(pkg);
37
 
41
};
-
 
42
 
38
collection_t* load_collection_file(const char *name);
43
collection_t* load_collection_file(const char *name);
39
collection_t* load_collection_buffer(const char *buffer);
44
collection_t* load_collection_buffer(const char *buffer);
40
 
45
 
41
int copy_list(list_t *list, list_t *src);
Line 46... Line 42...
46
int build_server_list(list_t *slist, const char *path);
42
 
47
int build_install_list(list_t *list, collection_t *collection);
43
int build_server_list(list_t *slist, const char *path);
Line -... Line 44...
-
 
44
int build_download_list(list_t *download, list_t *src);
-
 
45
void remove_missing_packages(list_t *install, list_t *missed);
48
int build_download_list(list_t *download, list_t *src);
46
char *make_cache_path(const char *path);
49
void remove_missing_packages(list_t *install, list_t *missed);
47
void print_pkg_list(list_t *list);
50
char *make_cache_path(const char *path);
48
 
Line 51... Line 49...
51
void print_pkg_list(list_t *list);
49
void do_download(list_t *download);