LiRepository

LiRepository — A local Limba package repository

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── LiRepository

Description

Functions

LI_TYPE_REPOSITORY

#define LI_TYPE_REPOSITORY (li_repository_get_type ())


li_repository_error_quark ()

GQuark
li_repository_error_quark (void);

Returns

An error quark.


li_repository_new ()

LiRepository *
li_repository_new (void);

Creates a new LiRepository.

Returns

a LiRepository.

[transfer full]


li_repository_open ()

gboolean
li_repository_open (LiRepository *repo,
                    const gchar *directory,
                    GError **error);

li_repository_save ()

gboolean
li_repository_save (LiRepository *repo,
                    GError **error);

Save the repository metadata and sign it.


li_repository_add_package ()

gboolean
li_repository_add_package (LiRepository *repo,
                           const gchar *pkg_fname,
                           GError **error);

li_repository_create_icon_tarballs ()

gboolean
li_repository_create_icon_tarballs (LiRepository *repo,
                                    GError **error);

Types and Values

struct LiRepositoryClass

struct LiRepositoryClass {
	GObjectClass		parent_class;
};


enum LiRepositoryError

The error type.

Members

LI_REPOSITORY_ERROR_FAILED

Generic failure

 

LI_REPOSITORY_ERROR_NO_REPO

The directory is no Limba repository

 

LI_REPOSITORY_ERROR_PKG_EXISTS

Package was already in the repository and can not be added again.

 

LI_REPOSITORY_ERROR_EMBEDDED_COPY

The package contains embedded other packages, which is not allowed.

 

LI_REPOSITORY_ERROR_SIGN

Signing of repository failed.

 

LI_REPOSITORY_ERROR

#define LI_REPOSITORY_ERROR li_repository_error_quark ()


LiRepository

typedef struct _LiRepository LiRepository;