Beispiel #1
0
func (v List) Append(data unsafe.Pointer) *List {
	return &List{C.g_list_append(v.GList, C.gpointer(data))}
}
Beispiel #2
0
// Append is a wrapper around g_list_append.
func (v *List) Append(data uintptr) *List {
	glist := (*C.GList)(unsafe.Pointer(v))
	glist = C.g_list_append(glist, C.gpointer(data))
	return (*List)(unsafe.Pointer(glist))
}