Example #1
0
func initDisplay() (display *C.struct_wl_display) {
	display = C.wl_display_create()

	if display == nil {
		return
	}

	if C.wl_display_add_socket(display, nil) != 0 {
		return
	}
	return display
}
Example #2
0
func CreateDisplay() Display {
	var display Display = Display(C.wl_display_create())
	return display
}