Skip to content

Commit

Permalink
sysroot-upgrader: fix gtype function names
Browse files Browse the repository at this point in the history
NB: I'm not 100% caught up with the GLib OO goodness, so that might have
been intentional...
  • Loading branch information
jlebon committed Mar 14, 2016
1 parent b4ef050 commit 19233b9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions src/daemon/rpmostree-sysroot-upgrader.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ enum {

static void rpmostree_sysroot_upgrader_initable_iface_init (GInitableIface *iface);

G_DEFINE_TYPE_WITH_CODE (RpmOstreeSysrootUpgrader, ostree_sysroot_upgrader, G_TYPE_OBJECT,
G_DEFINE_TYPE_WITH_CODE (RpmOstreeSysrootUpgrader, rpmostree_sysroot_upgrader, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE, rpmostree_sysroot_upgrader_initable_iface_init))

static gboolean
Expand Down Expand Up @@ -166,7 +166,7 @@ rpmostree_sysroot_upgrader_initable_iface_init (GInitableIface *iface)
}

static void
ostree_sysroot_upgrader_finalize (GObject *object)
rpmostree_sysroot_upgrader_finalize (GObject *object)
{
RpmOstreeSysrootUpgrader *self = RPMOSTREE_SYSROOT_UPGRADER (object);

Expand All @@ -180,14 +180,14 @@ ostree_sysroot_upgrader_finalize (GObject *object)
g_strfreev (self->requested_packages);
g_free (self->override_csum);

G_OBJECT_CLASS (ostree_sysroot_upgrader_parent_class)->finalize (object);
G_OBJECT_CLASS (rpmostree_sysroot_upgrader_parent_class)->finalize (object);
}

static void
ostree_sysroot_upgrader_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
rpmostree_sysroot_upgrader_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
RpmOstreeSysrootUpgrader *self = RPMOSTREE_SYSROOT_UPGRADER (object);

Expand All @@ -209,10 +209,10 @@ ostree_sysroot_upgrader_set_property (GObject *object,
}

static void
ostree_sysroot_upgrader_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
rpmostree_sysroot_upgrader_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
RpmOstreeSysrootUpgrader *self = RPMOSTREE_SYSROOT_UPGRADER (object);

Expand All @@ -234,24 +234,24 @@ ostree_sysroot_upgrader_get_property (GObject *object,
}

static void
ostree_sysroot_upgrader_constructed (GObject *object)
rpmostree_sysroot_upgrader_constructed (GObject *object)
{
RpmOstreeSysrootUpgrader *self = RPMOSTREE_SYSROOT_UPGRADER (object);

g_assert (self->sysroot != NULL);

G_OBJECT_CLASS (ostree_sysroot_upgrader_parent_class)->constructed (object);
G_OBJECT_CLASS (rpmostree_sysroot_upgrader_parent_class)->constructed (object);
}

static void
ostree_sysroot_upgrader_class_init (RpmOstreeSysrootUpgraderClass *klass)
rpmostree_sysroot_upgrader_class_init (RpmOstreeSysrootUpgraderClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);

object_class->constructed = ostree_sysroot_upgrader_constructed;
object_class->get_property = ostree_sysroot_upgrader_get_property;
object_class->set_property = ostree_sysroot_upgrader_set_property;
object_class->finalize = ostree_sysroot_upgrader_finalize;
object_class->constructed = rpmostree_sysroot_upgrader_constructed;
object_class->get_property = rpmostree_sysroot_upgrader_get_property;
object_class->set_property = rpmostree_sysroot_upgrader_set_property;
object_class->finalize = rpmostree_sysroot_upgrader_finalize;

g_object_class_install_property (object_class,
PROP_SYSROOT,
Expand All @@ -273,7 +273,7 @@ ostree_sysroot_upgrader_class_init (RpmOstreeSysrootUpgraderClass *klass)
}

static void
ostree_sysroot_upgrader_init (RpmOstreeSysrootUpgrader *self)
rpmostree_sysroot_upgrader_init (RpmOstreeSysrootUpgrader *self)
{
}

Expand Down Expand Up @@ -320,7 +320,7 @@ rpmostree_sysroot_upgrader_dup_origin (RpmOstreeSysrootUpgrader *self)
{
GKeyFile *copy = NULL;

g_return_val_if_fail (OSTREE_IS_SYSROOT_UPGRADER (self), NULL);
g_return_val_if_fail (RPMOSTREE_IS_SYSROOT_UPGRADER (self), NULL);

if (self->origin != NULL)
{
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/rpmostree-sysroot-upgrader.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

G_BEGIN_DECLS

#define RPMOSTREE_TYPE_SYSROOT_UPGRADER ostree_sysroot_upgrader_get_type()
#define RPMOSTREE_TYPE_SYSROOT_UPGRADER rpmostree_sysroot_upgrader_get_type()
#define RPMOSTREE_SYSROOT_UPGRADER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), RPMOSTREE_TYPE_SYSROOT_UPGRADER, RpmOstreeSysrootUpgrader))
#define RPMOSTREE_IS_SYSROOT_UPGRADER(obj) \
Expand Down

0 comments on commit 19233b9

Please sign in to comment.