to follow SUSE tools conventions
[platform/upstream/libsolv.git] / tools / helix2solv.c
1 /*
2  * helix2solv.c
3  * 
4  * parse 'helix' type xml and write out .solv file
5  *
6  * reads from stdin
7  * writes to stdout
8  */
9
10 #include <sys/types.h>
11 #include <limits.h>
12 #include <fcntl.h>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <string.h>
16
17 #include "pool.h"
18 #include "repo_helix.h"
19 #include "repo_write.h"
20
21 int
22 main(int argc, char **argv)
23 {
24   Pool *pool = pool_create();
25   Repo *repo = pool_addrepo_helix(pool, stdin);
26   pool_writerepo(pool, repo, stdout);
27   pool_free(pool);
28   exit(0);
29 }