grim/gobjects-101
Clone
Summary
Browse
Changes
Graph
Move to macros add a subclass and instance method
draft
2021-06-23, Gary Kramlich
e21f4ddf7902
Move to macros add a subclass and instance method
#ifndef BICYCLE_H
#define BICYCLE_H
#include
<glib.h>
#include
<glib-object.h>
G_BEGIN_DECLS
#define GOBJECTS_TYPE_BICYCLE (gobjects_bicycle_get_type())
G_DECLARE_DERIVABLE_TYPE
(
GobjectsBicycle
,
gobjects_bicycle
,
GOBJECTS
,
BICYCLE
,
GObject
)
struct
_GobjectsBicycleClass
{
GObjectClass
parent
;
void
(
*
ring_bell
)(
GobjectsBicycle
*
bicycle
);
};
GobjectsBicycle
*
gobjects_bicycle_new
(
void
);
void
gobjects_bicycle_ring_bell
(
GobjectsBicycle
*
bicycle
);
G_END_DECLS
#endif
/* BICYCLE_H */