KWin
Loading...
Searching...
No Matches
Functions
wl-socket.h File Reference

Go to the source code of this file.

Functions

struct wl_socketwl_socket_create ()
 
int wl_socket_get_fd (struct wl_socket *)
 
char * wl_socket_get_display_name (struct wl_socket *)
 
void wl_socket_destroy (struct wl_socket *socket)
 

Function Documentation

◆ wl_socket_create()

struct wl_socket * wl_socket_create ( )

Allocate and create a socket It is bound and accepted

Definition at line 123 of file wl-socket.c.

◆ wl_socket_destroy()

void wl_socket_destroy ( struct wl_socket * socket)

Cleanup resources and close the FD

Definition at line 99 of file wl-socket.c.

◆ wl_socket_get_display_name()

char * wl_socket_get_display_name ( struct wl_socket * s)

Returns the name of the socket, i.e "wayland-0"

Definition at line 113 of file wl-socket.c.

◆ wl_socket_get_fd()

int wl_socket_get_fd ( struct wl_socket * s)

Returns the file descriptor for the socket

Definition at line 118 of file wl-socket.c.