5 #ifndef PROTOTYPE_FACTORY_H 6 #define PROTOTYPE_FACTORY_H void prototype_factory_instance_free_data(PrototypeFactoryInstance this, void *data)
free data
void prototype_factory_instance_free(PrototypeFactoryInstance this)
free
struct prototype_factory_instance_t * PrototypeFactoryInstance
void * prototype_factory_instance_clone_data(PrototypeFactoryInstance this)
clone data
prototype_factory_instance, PrototypeFactory class instance definition
PrototypeFactoryInstance prototype_factory_instance_new(void *base, size_t base_length, prototype_factory_method_t *factory_method)
new
This is API for Prototype design pattern.
prototype_factory_method_t factory_method
PrototypeFactory methods interface definition, to set prototype_register.