|
ali@109
|
1 |
#ifndef __PLOVER_YUM_REPOSITORY_H__
|
|
ali@109
|
2 |
#define __PLOVER_YUM_REPOSITORY_H__
|
|
ali@109
|
3 |
|
|
ali@109
|
4 |
#include <plover/repository.h>
|
|
ali@109
|
5 |
|
|
ali@109
|
6 |
G_BEGIN_DECLS
|
|
ali@109
|
7 |
|
|
ali@109
|
8 |
#define PLOVER_TYPE_YUM_REPOSITORY \
|
|
ali@109
|
9 |
plover_yum_repository_get_type()
|
|
ali@109
|
10 |
#define PLOVER_YUM_REPOSITORY(obj) G_TYPE_CHECK_INSTANCE_CAST(obj,\
|
|
ali@109
|
11 |
PLOVER_TYPE_YUM_REPOSITORY,\
|
|
ali@109
|
12 |
PloverYumRepository)
|
|
ali@109
|
13 |
#define PLOVER_YUM_REPOSITORY_CLASS(klass)\
|
|
ali@109
|
14 |
G_TYPE_CHECK_CLASS_CAST(klass,\
|
|
ali@109
|
15 |
PLOVER_TYPE_YUM_REPOSITORY,\
|
|
ali@109
|
16 |
PloverYumRepositoryClass)
|
|
ali@109
|
17 |
#define PLOVER_IS_YUM_REPOSITORY(obj)\
|
|
ali@109
|
18 |
G_TYPE_CHECK_INSTANCE_TYPE(obj,\
|
|
ali@109
|
19 |
PLOVER_TYPE_YUM_REPOSITORY)
|
|
ali@109
|
20 |
#define PLOVER_IS_YUM_REPOSITORY_CLASS(klass)\
|
|
ali@109
|
21 |
G_TYPE_CHECK_CLASS_TYPE(obj,\
|
|
ali@109
|
22 |
PLOVER_TYPE_YUM_REPOSITORY)
|
|
ali@109
|
23 |
#define PLOVER_YUM_REPOSITORY_GET_CLASS(obj)\
|
|
ali@109
|
24 |
G_TYPE_INSTANCE_GET_CLASS(obj,\
|
|
ali@109
|
25 |
PLOVER_TYPE_YUM_REPOSITORY,\
|
|
ali@109
|
26 |
PloverYumRepositoryClass)
|
|
ali@109
|
27 |
|
|
ali@109
|
28 |
typedef struct _PloverYumRepository {
|
|
ali@109
|
29 |
PloverRepository parent_instance;
|
|
ali@109
|
30 |
} PloverYumRepository;
|
|
ali@109
|
31 |
|
|
ali@109
|
32 |
typedef struct _PloverYumRepositoryClass {
|
|
ali@109
|
33 |
PloverRepositoryClass parent_class;
|
|
ali@109
|
34 |
} PloverYumRepositoryClass;
|
|
ali@109
|
35 |
|
|
ali@109
|
36 |
GType plover_yum_repository_get_type(void) G_GNUC_CONST;
|
|
ali@109
|
37 |
PloverYumRepository *plover_yum_repository_new_from_uri(const char *base_uri,
|
|
ali@109
|
38 |
GError **error);
|
|
ali@109
|
39 |
PloverYumRepository *plover_yum_repository_new_from_path(const char *base,
|
|
ali@109
|
40 |
GError **error);
|
|
ali@109
|
41 |
struct comps *plover_yum_repository_get_comps(PloverYumRepository *repository,
|
|
ali@109
|
42 |
GError **error);
|
|
ali@109
|
43 |
|
|
ali@109
|
44 |
G_END_DECLS
|
|
ali@109
|
45 |
|
|
ali@109
|
46 |
#endif /* __PLOVER_YUM_REPOSITORY_H__ */
|