Method

GgitObjectFactoryregister

Declaration [src]

void
ggit_object_factory_register (
  GgitObjectFactory* factory,
  GType basetype,
  GType subtype
)

Description [src]

Register subtype as the instantiation class for basetype. Each time an object of type basetype is going to be created, an instance of subtype is created instead. basetype must be subclassed from GgitObjectFactoryBase.

Parameters

basetype GType
 

A GType.

subtype GType
 

A GType.