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