func (s *Shout) UpdateMetadata(mname string, mvalue string) { md := C.shout_metadata_new() ptr1 := C.CString(mname) ptr2 := C.CString(mvalue) C.shout_metadata_add(md, ptr1, ptr2) C.free(unsafe.Pointer(ptr1)) C.free(unsafe.Pointer(ptr2)) C.shout_set_metadata(s.struc, md) C.shout_metadata_free(md) }
func DestroyShout(shout Shout) { /* Destroys the Shout instance. The instance can't be used without undefined behaviour after calling this function */ C.shout_free(shout.shout) C.shout_metadata_free(shout.shout_metadata) }