Пример #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
}
Пример #2
0
func AddDisplaySocket(display Display) int {
	return int(C.wl_display_add_socket((*C.struct_wl_display)(display), nil))
}