LiPkgIndex

LiPkgIndex — A list of packages

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── LiPkgIndex

Description

Functions

LI_TYPE_PKG_INDEX

#define LI_TYPE_PKG_INDEX (li_pkg_index_get_type ())


li_pkg_index_new ()

LiPkgIndex *
li_pkg_index_new (void);

Creates a new LiPkgIndex.

Returns

a LiPkgIndex.

[transfer full]


li_pkg_index_load_file ()

void
li_pkg_index_load_file (LiPkgIndex *pkidx,
                        GFile *file,
                        GError **error);

li_pkg_index_load_data ()

void
li_pkg_index_load_data (LiPkgIndex *pkidx,
                        const gchar *data);

li_pkg_index_save_to_file ()

gboolean
li_pkg_index_save_to_file (LiPkgIndex *pkidx,
                           const gchar *filename);

li_pkg_index_get_packages ()

GPtrArray *
li_pkg_index_get_packages (LiPkgIndex *pkidx);

Returns

Packages in the index.

[transfer none][element-type LiPkgInfo]


li_pkg_index_add_package ()

void
li_pkg_index_add_package (LiPkgIndex *pkidx,
                          LiPkgInfo *pki);

li_pkg_index_get_packages_count ()

guint
li_pkg_index_get_packages_count (LiPkgIndex *pkidx);

Returns

Count of packages in the index


li_pkg_index_get_data ()

gchar *
li_pkg_index_get_data (LiPkgIndex *pkidx);

Types and Values

struct LiPkgIndexClass

struct LiPkgIndexClass {
	GObjectClass		parent_class;
};


LiPkgIndex

typedef struct _LiPkgIndex LiPkgIndex;