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 }
func AddDisplaySocket(display Display) int { return int(C.wl_display_add_socket((*C.struct_wl_display)(display), nil)) }