// CreatePropertyStore creates an empty property store. Property stores are // used to collect import settings. // // Returns a new property store. Property stores need to be manually destroyed // using the ReleasePropertyStore() function. // // Reference to the property store must be held for as long as it must remain // valid on the C side. func createPropertyStore() *propertyStore { g := new(propertyStore) g.c = C.aiCreatePropertyStore() if g.c == nil { return nil } runtime.SetFinalizer(g, func(f *propertyStore) { C.aiReleasePropertyStore(f.c) }) return g }
func CreatePropertyStore() *PropertyStore { return (*PropertyStore)(C.aiCreatePropertyStore()) }