ZifPackageLocal

ZifPackageLocal — Local package object

Synopsis

                    ZifPackageLocal;
                    ZifPackageLocalPrivate;
                    ZifPackageLocalClass;
ZifPackageLocal *   zif_package_local_new               (void);
gboolean            zif_package_local_set_from_header   (ZifPackageLocal *pkg,
                                                         Header header,
                                                         GError **error);
gboolean            zif_package_local_set_from_filename (ZifPackageLocal *pkg,
                                                         const gchar *filename,
                                                         GError **error);

Object Hierarchy

  GObject
   +----ZifPackage
         +----ZifPackageLocal

Description

This object is a subclass of ZifPackage

Details

ZifPackageLocal

typedef struct _ZifPackageLocal ZifPackageLocal;


ZifPackageLocalPrivate

typedef struct _ZifPackageLocalPrivate ZifPackageLocalPrivate;

Private ZifPackageLocal data


ZifPackageLocalClass

typedef struct {
	ZifPackageClass		 parent_class;
} ZifPackageLocalClass;


zif_package_local_new ()

ZifPackageLocal *   zif_package_local_new               (void);

Returns :

A new ZifPackageLocal class instance.

Since 0.1.0


zif_package_local_set_from_header ()

gboolean            zif_package_local_set_from_header   (ZifPackageLocal *pkg,
                                                         Header header,
                                                         GError **error);

Sets the local package from an RPM header object.

pkg :

the ZifPackageLocal object

header :

a rpm Header structure

error :

a GError which is used on failure, or NULL

Returns :

TRUE for success, FALSE for failure

Since 0.1.0


zif_package_local_set_from_filename ()

gboolean            zif_package_local_set_from_filename (ZifPackageLocal *pkg,
                                                         const gchar *filename,
                                                         GError **error);

Sets a local package object from a local file.

pkg :

the ZifPackageLocal object

filename :

the local filename

error :

a GError which is used on failure, or NULL

Returns :

TRUE for success, FALSE for failure

Since 0.1.0