Esempio n. 1
0
func LoadConfig(filename string) *Config {
	cs := C.CString(filename)
	defer C.free(unsafe.Pointer(cs))

	var c *Config

	c = (*Config)(C.al_load_config_file(cs))

	return c
}
Esempio n. 2
0
func LoadConfigFile(filename string) *Config {
	f := C.CString(filename)
	defer C.free(unsafe.Pointer(f))
	return (*Config)(unsafe.Pointer(C.al_load_config_file(f)))
}