LiRuntime

LiRuntime — Control metadata for temporary runtime environments

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── LiRuntime

Description

Functions

LI_TYPE_RUNTIME

#define LI_TYPE_RUNTIME (li_runtime_get_type ())


li_runtime_new ()

LiRuntime *
li_runtime_new (void);

Creates a new LiRuntime.

Returns

a LiRuntime.

[transfer full]


li_runtime_load_from_file ()

gboolean
li_runtime_load_from_file (LiRuntime *rt,
                           const gchar *fname,
                           GError **error);

Load dynamic runtime information from a cache file.


li_runtime_load_by_uuid ()

gboolean
li_runtime_load_by_uuid (LiRuntime *rt,
                         const gchar *uuid,
                         GError **error);

li_runtime_save ()

gboolean
li_runtime_save (LiRuntime *rt,
                 GError **error);

Save the runtime metadata.


li_runtime_get_uuid ()

const gchar *
li_runtime_get_uuid (LiRuntime *rt);

li_runtime_create_with_members ()

LiRuntime *
li_runtime_create_with_members (GPtrArray *members,
                                GError **error);

Generate a new runtime environment consisting of the given members.

Parameters

members

A list of software as LiPkgInfo.

[element-type LiPkgInfo]

Returns

A new LiRuntime instance.

[transfer full]


li_runtime_get_requirements ()

GHashTable *
li_runtime_get_requirements (LiRuntime *rt);

Returns

Hash set of package requirements which make up this runtime.

[transfer none][element-type utf8 LiPkgInfo]


li_runtime_get_members ()

GHashTable *
li_runtime_get_members (LiRuntime *rt);

Returns

Hash set of packages which are members of this runtime.

[transfer none][element-type utf8 LiPkgInfo]


li_runtime_add_package ()

void
li_runtime_add_package (LiRuntime *rt,
                        LiPkgInfo *pki);

li_runtime_remove_package ()

void
li_runtime_remove_package (LiRuntime *rt,
                           LiPkgInfo *pki);

Parameters

rt

An instance of LiRuntime

 

li_runtime_update_package ()

void
li_runtime_update_package (LiRuntime *rt,
                           LiPkgInfo *old_pki,
                           LiPkgInfo *new_pki);

Parameters

rt

An instance of LiRuntime

 

li_runtime_remove ()

gboolean
li_runtime_remove (LiRuntime *rt);

Uninstall this runtime.

Types and Values

struct LiRuntimeClass

struct LiRuntimeClass {
	GObjectClass		parent_class;
};


LiRuntime

typedef struct _LiRuntime LiRuntime;