Example #1
0
func shellInit(display *C.struct_wl_display) {

	C.wl_global_create(display,
		C.WL_shell_interface,
		1,
		nil,
		cPtr(bind_shell.CPtr()))
}
Example #2
0
func shmInit(display *C.struct_wl_display) {

	C.wl_global_create(display,
		&C.wl_shm_interface,
		1,
		nil,
		cPtr(bind_shm.CPtr()))
}
Example #3
0
func xdgShellInit(display *C.struct_wl_display) {

	C.wl_global_create(display,
		&C.xdg_shell_interface,
		1,
		nil,
		cPtr(bind_xdg_shell.CPtr()))
}
Example #4
0
func compositorInit(display *C.struct_wl_display) {

	C.wl_global_create(display,
		C.WL_compositor_interface,
		3,
		nil,
		cPtr(bind_compositor.CPtr()))

	C.wl_signal_init(&new_surface_signal)
}
Example #5
0
func seatInit(display *C.struct_wl_display) {

	seat = cfn.CreateFunc(bind_seat)

	C.wl_global_create(display,
		C.WL_seat_interface,
		3,
		nil,
		cPtr(seat.CPtr()))
}