ListallerIPKControl

ListallerIPKControl — Generic IPK package control data

Functions

#define LISTALLER_IPK_TYPE_CONTROL
void listaller_ipk_control_load_appstream_data ()
gboolean listaller_ipk_control_open_packsetting ()
gchar * listaller_ipk_control_get_ipk_version ()
void listaller_ipk_control_set_ipk_version ()
gchar * listaller_ipk_control_get_architectures ()
void listaller_ipk_control_set_architectures ()
gchar * listaller_ipk_control_get_replaces ()
void listaller_ipk_control_set_replaces ()
void listaller_ipk_control_set_install_modes ()
ListallerIPKInstallMode listaller_ipk_control_get_install_modes ()
ListallerAppItem * listaller_ipk_control_get_application ()
void listaller_ipk_control_set_dependencies ()
gchar * listaller_ipk_control_get_dependencies ()
gboolean listaller_ipk_control_set_license_text_from_file ()
void listaller_ipk_control_set_license_text ()
gboolean listaller_ipk_control_get_user_accept_license ()
void listaller_ipk_control_set_user_accept_license ()
#define LISTALLER_IPK_TYPE_PACK_CONTROL
gboolean listaller_ipk_pack_control_open_control ()
gboolean listaller_ipk_pack_control_create_new ()
gboolean listaller_ipk_pack_control_is_delta_pkg ()
gboolean listaller_ipk_pack_control_save_to_dir ()
gchar ** listaller_ipk_pack_control_get_files ()
void listaller_ipk_pack_control_update_installmode_data ()
ListallerIPKPackControl * listaller_ipk_pack_control_new ()
#define LISTALLER_IPK_TYPE_CONTROL_DIR
gboolean listaller_ipk_control_dir_open_dir ()
gchar * listaller_ipk_control_dir_get_files_rootdir ()
gboolean listaller_ipk_control_dir_auto_dependency_search ()
gchar * listaller_ipk_control_dir_get_appstream_data ()
gboolean listaller_ipk_control_dir_save_control ()
ListallerIPKControlDir * listaller_ipk_control_dir_new ()

Properties

Types and Values

Object Hierarchy

    GObject
    ├── ListallerIPKControl
       ├── ListallerIPKControlDir
       ╰── ListallerIPKPackControl
    ╰── ListallerIPKControl
        ├── ListallerIPKControlDir
        ╰── ListallerIPKPackControl

Description

Functions

LISTALLER_IPK_TYPE_CONTROL

#define LISTALLER_IPK_TYPE_CONTROL (listaller_ipk_control_get_type ())

The type for ListallerIPKControl.


listaller_ipk_control_load_appstream_data ()

void
listaller_ipk_control_load_appstream_data
                               (ListallerIPKControl *self,
                                const gchar *data);

Parameters

self

the ListallerIPKControl instance

 

data

 

 

listaller_ipk_control_open_packsetting ()

gboolean
listaller_ipk_control_open_packsetting
                               (ListallerIPKControl *self,
                                const gchar *pksFName);

Parameters

self

the ListallerIPKControl instance

 

pksFName

 

 

listaller_ipk_control_get_ipk_version ()

gchar *
listaller_ipk_control_get_ipk_version (ListallerIPKControl *self);

Parameters

self

the ListallerIPKControl instance

 

listaller_ipk_control_set_ipk_version ()

void
listaller_ipk_control_set_ipk_version (ListallerIPKControl *self,
                                       const gchar *ipkV);

Parameters

self

the ListallerIPKControl instance

 

ipkV

 

 

listaller_ipk_control_get_architectures ()

gchar *
listaller_ipk_control_get_architectures
                               (ListallerIPKControl *self);

Get architectures supported by this package

Parameters

self

the ListallerIPKControl instance

 

listaller_ipk_control_set_architectures ()

void
listaller_ipk_control_set_architectures
                               (ListallerIPKControl *self,
                                const gchar *archs);

Set architectures supported by this package

Parameters

self

the ListallerIPKControl instance

 

archs

 

 

listaller_ipk_control_get_replaces ()

gchar *
listaller_ipk_control_get_replaces (ListallerIPKControl *self);

Get replaced native components for the package.

DEPRECATED

Parameters

self

the ListallerIPKControl instance

 

listaller_ipk_control_set_replaces ()

void
listaller_ipk_control_set_replaces (ListallerIPKControl *self,
                                    const gchar *repList);

DEPRECATED

Parameters

self

the ListallerIPKControl instance

 

repList

 

 

listaller_ipk_control_set_install_modes ()

void
listaller_ipk_control_set_install_modes
                               (ListallerIPKControl *self,
                                ListallerIPKInstallMode modes);

Parameters

self

the ListallerIPKControl instance

 

modes

 

 

listaller_ipk_control_get_install_modes ()

ListallerIPKInstallMode
listaller_ipk_control_get_install_modes
                               (ListallerIPKControl *self);

Parameters

self

the ListallerIPKControl instance

 

listaller_ipk_control_get_application ()

ListallerAppItem *
listaller_ipk_control_get_application (ListallerIPKControl *self,
                                       GError **error);

Parameters

self

the ListallerIPKControl instance

 

error

location to store the error occuring, or NULL to ignore.

[error-domains ListallerIPKControlDataError]

listaller_ipk_control_set_dependencies ()

void
listaller_ipk_control_set_dependencies
                               (ListallerIPKControl *self,
                                const gchar *dependencies_list,
                                const gchar *arch);

Parameters

self

the ListallerIPKControl instance

 

dependencies_list

 

 

arch

 

 

listaller_ipk_control_get_dependencies ()

gchar *
listaller_ipk_control_get_dependencies
                               (ListallerIPKControl *self,
                                const gchar *arch,
                                gboolean arch_only);

Parameters

self

the ListallerIPKControl instance

 

arch

 

 

arch_only

 

 

listaller_ipk_control_set_license_text_from_file ()

gboolean
listaller_ipk_control_set_license_text_from_file
                               (ListallerIPKControl *self,
                                const gchar *fname);

Parameters

self

the ListallerIPKControl instance

 

fname

 

 

listaller_ipk_control_set_license_text ()

void
listaller_ipk_control_set_license_text
                               (ListallerIPKControl *self,
                                const gchar *txt);

Parameters

self

the ListallerIPKControl instance

 

txt

 

 

listaller_ipk_control_get_user_accept_license ()

gboolean
listaller_ipk_control_get_user_accept_license
                               (ListallerIPKControl *self);

Get and return the current value of the "user-accept-license" property.

TRUE if user should manually accept the supplied license/eula. FALSE if there is no need to do this.

Parameters

self

the ListallerIPKControl instance to query

 

Returns

the value of the "user-accept-license" property


listaller_ipk_control_set_user_accept_license ()

void
listaller_ipk_control_set_user_accept_license
                               (ListallerIPKControl *self,
                                gboolean value);

Set the value of the "user-accept-license" property to value .

TRUE if user should manually accept the supplied license/eula. FALSE if there is no need to do this.

Parameters

self

the ListallerIPKControl instance to modify

 

value

the new value of the "user-accept-license" property

 

LISTALLER_IPK_TYPE_PACK_CONTROL

#define LISTALLER_IPK_TYPE_PACK_CONTROL (listaller_ipk_pack_control_get_type ())

The type for ListallerIPKPackControl.


listaller_ipk_pack_control_open_control ()

gboolean
listaller_ipk_pack_control_open_control
                               (ListallerIPKPackControl *self,
                                const gchar *fPackSetting,
                                const gchar *fAppStream);

Parameters

self

the ListallerIPKPackControl instance

 

fPackSetting

 

 

fAppStream

 

 

listaller_ipk_pack_control_create_new ()

gboolean
listaller_ipk_pack_control_create_new (ListallerIPKPackControl *self,
                                       const gchar *newAppStreamData,
                                       const gchar *ipkV);

Parameters

self

the ListallerIPKPackControl instance

 

newAppStreamData

 

 

ipkV

 

 

listaller_ipk_pack_control_is_delta_pkg ()

gboolean
listaller_ipk_pack_control_is_delta_pkg
                               (ListallerIPKPackControl *self);

Parameters

self

the ListallerIPKPackControl instance

 

listaller_ipk_pack_control_save_to_dir ()

gboolean
listaller_ipk_pack_control_save_to_dir
                               (ListallerIPKPackControl *self,
                                const gchar *dirPath);

Parameters

self

the ListallerIPKPackControl instance

 

dirPath

 

 

listaller_ipk_pack_control_get_files ()

gchar **
listaller_ipk_pack_control_get_files (ListallerIPKPackControl *self);

Parameters

self

the ListallerIPKPackControl instance

 

Returns

.

[array length=result_length1]


listaller_ipk_pack_control_update_installmode_data ()

void
listaller_ipk_pack_control_update_installmode_data
                               (ListallerIPKPackControl *self);

Parameters

self

the ListallerIPKPackControl instance

 

listaller_ipk_pack_control_new ()

ListallerIPKPackControl *
listaller_ipk_pack_control_new (void);

LISTALLER_IPK_TYPE_CONTROL_DIR

#define LISTALLER_IPK_TYPE_CONTROL_DIR (listaller_ipk_control_dir_get_type ())

The type for ListallerIPKControlDir.


listaller_ipk_control_dir_open_dir ()

gboolean
listaller_ipk_control_dir_open_dir (ListallerIPKControlDir *self,
                                    const gchar *dir,
                                    GError **error);

Parameters

self

the ListallerIPKControlDir instance

 

dir

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains ListallerIPKControlDataError]

listaller_ipk_control_dir_get_files_rootdir ()

gchar *
listaller_ipk_control_dir_get_files_rootdir
                               (ListallerIPKControlDir *self);

Parameters

self

the ListallerIPKControlDir instance

 

listaller_ipk_control_dir_auto_dependency_search ()

gboolean
listaller_ipk_control_dir_auto_dependency_search
                               (ListallerIPKControlDir *self);

Parameters

self

the ListallerIPKControlDir instance

 

listaller_ipk_control_dir_get_appstream_data ()

gchar *
listaller_ipk_control_dir_get_appstream_data
                               (ListallerIPKControlDir *self);

Parameters

self

the ListallerIPKControlDir instance

 

listaller_ipk_control_dir_save_control ()

gboolean
listaller_ipk_control_dir_save_control
                               (ListallerIPKControlDir *self);

Parameters

self

the ListallerIPKControlDir instance

 

listaller_ipk_control_dir_new ()

ListallerIPKControlDir *
listaller_ipk_control_dir_new (void);

Types and Values

struct ListallerIPKControl

struct ListallerIPKControl;

Generic IPK package control data


struct ListallerIPKControlClass

struct ListallerIPKControlClass {
	GObjectClass parent_class;
};

The class structure for LISTALLER_IPK_TYPE_CONTROL. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure

 

struct ListallerIPKPackControl

struct ListallerIPKPackControl;

Control metadata of an IPK package


struct ListallerIPKPackControlClass

struct ListallerIPKPackControlClass {
	ListallerIPKControlClass parent_class;
};

The class structure for LISTALLER_IPK_TYPE_PACK_CONTROL. All the fields in this structure are private and should never be accessed directly.

Members

ListallerIPKControlClass parent_class;

the parent class structure

 

struct ListallerIPKControlDir

struct ListallerIPKControlDir;

Data stored in an IPK-source control directory.

This class is used by tools like lipkgen to extract data about a to-be-created IPK package from an IPK control directory.


struct ListallerIPKControlDirClass

struct ListallerIPKControlDirClass {
	ListallerIPKControlClass parent_class;
};

The class structure for LISTALLER_IPK_TYPE_CONTROL_DIR. All the fields in this structure are private and should never be accessed directly.

Members

ListallerIPKControlClass parent_class;

the parent class structure

 

enum ListallerIPKControlDataError

Members

LISTALLER_IPK_CONTROL_DATA_ERROR_NO_APPDATA

   

LISTALLER_IPK_CONTROL_DATA_ERROR_APPDATA_INVALID

   

LISTALLER_IPK_CONTROL_DATA_ERROR_DEPLIST_INVALID

   

LISTALLER_IPK_CONTROL_DATA_ERROR_INTERNAL

   

LISTALLER_IPK_CONTROL_DATA_ERROR_UNKNOWN

   

Property Details

The “user-accept-license” property

  “user-accept-license”      gboolean

TRUE if user should manually accept the supplied license/eula. FALSE if there is no need to do this.

Flags: Read / Write

Default value: FALSE