Functions | Variables
wl_init.c File Reference
#include "internal.h"
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <linux/input.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/timerfd.h>
#include <unistd.h>
#include <wayland-client.h>
Include dependency graph for wl_init.c:

Go to the source code of this file.

Functions

const char * _glfwPlatformGetVersionString (void)
 
int _glfwPlatformInit (void)
 
void _glfwPlatformTerminate (void)
 
static void createKeyTables (void)
 
static void dataDeviceHandleDataOffer (void *data, struct wl_data_device *dataDevice, struct wl_data_offer *id)
 
static void dataDeviceHandleDrop (void *data, struct wl_data_device *dataDevice)
 
static void dataDeviceHandleEnter (void *data, struct wl_data_device *dataDevice, uint32_t serial, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *id)
 
static void dataDeviceHandleLeave (void *data, struct wl_data_device *dataDevice)
 
static void dataDeviceHandleMotion (void *data, struct wl_data_device *dataDevice, uint32_t time, wl_fixed_t x, wl_fixed_t y)
 
static void dataDeviceHandleSelection (void *data, struct wl_data_device *dataDevice, struct wl_data_offer *id)
 
static void dataOfferHandleOffer (void *data, struct wl_data_offer *dataOffer, const char *mimeType)
 
static _GLFWwindowfindWindowFromDecorationSurface (struct wl_surface *surface, int *which)
 
static GLFWbool inputChar (_GLFWwindow *window, uint32_t key)
 
static void keyboardHandleEnter (void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)
 
static void keyboardHandleKey (void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state)
 
static void keyboardHandleKeymap (void *data, struct wl_keyboard *keyboard, uint32_t format, int fd, uint32_t size)
 
static void keyboardHandleLeave (void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface)
 
static void keyboardHandleModifiers (void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group)
 
static int min (int n1, int n2)
 
static void pointerHandleAxis (void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value)
 
static void pointerHandleButton (void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state)
 
static void pointerHandleEnter (void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t sx, wl_fixed_t sy)
 
static void pointerHandleLeave (void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface)
 
static void pointerHandleMotion (void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t sx, wl_fixed_t sy)
 
static void registryHandleGlobal (void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version)
 
static void registryHandleGlobalRemove (void *data, struct wl_registry *registry, uint32_t name)
 
static void seatHandleCapabilities (void *data, struct wl_seat *seat, enum wl_seat_capability caps)
 
static void seatHandleName (void *data, struct wl_seat *seat, const char *name)
 
static void setCursor (_GLFWwindow *window, const char *name)
 
static int toGLFWKeyCode (uint32_t key)
 
static void wmBaseHandlePing (void *data, struct xdg_wm_base *wmBase, uint32_t serial)
 

Variables

static const struct wl_data_device_listener dataDeviceListener
 
static const struct wl_data_offer_listener dataOfferListener
 
static const struct wl_keyboard_listener keyboardListener
 
static const struct wl_pointer_listener pointerListener
 
static const struct wl_registry_listener registryListener
 
static const struct wl_seat_listener seatListener
 
static const struct xdg_wm_base_listener wmBaseListener
 

Function Documentation

const char* _glfwPlatformGetVersionString ( void  )

Definition at line 1305 of file wl_init.c.

int _glfwPlatformInit ( void  )

Definition at line 1039 of file wl_init.c.

void _glfwPlatformTerminate ( void  )

Definition at line 1212 of file wl_init.c.

static void createKeyTables ( void  )
static

Definition at line 902 of file wl_init.c.

static void dataDeviceHandleDataOffer ( void data,
struct wl_data_device *  dataDevice,
struct wl_data_offer *  id 
)
static

Definition at line 718 of file wl_init.c.

static void dataDeviceHandleDrop ( void data,
struct wl_data_device *  dataDevice 
)
static

Definition at line 752 of file wl_init.c.

static void dataDeviceHandleEnter ( void data,
struct wl_data_device *  dataDevice,
uint32_t  serial,
struct wl_surface *  surface,
wl_fixed_t  x,
wl_fixed_t  y,
struct wl_data_offer *  id 
)
static

Definition at line 729 of file wl_init.c.

static void dataDeviceHandleLeave ( void data,
struct wl_data_device *  dataDevice 
)
static

Definition at line 739 of file wl_init.c.

static void dataDeviceHandleMotion ( void data,
struct wl_data_device *  dataDevice,
uint32_t  time,
wl_fixed_t  x,
wl_fixed_t  y 
)
static

Definition at line 744 of file wl_init.c.

static void dataDeviceHandleSelection ( void data,
struct wl_data_device *  dataDevice,
struct wl_data_offer *  id 
)
static

Definition at line 757 of file wl_init.c.

static void dataOfferHandleOffer ( void data,
struct wl_data_offer *  dataOffer,
const char *  mimeType 
)
static

Definition at line 708 of file wl_init.c.

static _GLFWwindow* findWindowFromDecorationSurface ( struct wl_surface *  surface,
int *  which 
)
static

Definition at line 47 of file wl_init.c.

static GLFWbool inputChar ( _GLFWwindow window,
uint32_t  key 
)
static

Definition at line 531 of file wl_init.c.

static void keyboardHandleEnter ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
struct wl_surface *  surface,
struct wl_array *  keys 
)
static

Definition at line 463 of file wl_init.c.

static void keyboardHandleKey ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
uint32_t  time,
uint32_t  key,
uint32_t  state 
)
static

Definition at line 560 of file wl_init.c.

static void keyboardHandleKeymap ( void data,
struct wl_keyboard *  keyboard,
uint32_t  format,
int  fd,
uint32_t  size 
)
static

Definition at line 361 of file wl_init.c.

static void keyboardHandleLeave ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
struct wl_surface *  surface 
)
static

Definition at line 486 of file wl_init.c.

static void keyboardHandleModifiers ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
uint32_t  modsDepressed,
uint32_t  modsLatched,
uint32_t  modsLocked,
uint32_t  group 
)
static

Definition at line 601 of file wl_init.c.

static int min ( int  n1,
int  n2 
)
inlinestatic

Definition at line 42 of file wl_init.c.

static void pointerHandleAxis ( void data,
struct wl_pointer *  pointer,
uint32_t  time,
uint32_t  axis,
wl_fixed_t  value 
)
static

Definition at line 326 of file wl_init.c.

static void pointerHandleButton ( void data,
struct wl_pointer *  pointer,
uint32_t  serial,
uint32_t  time,
uint32_t  button,
uint32_t  state 
)
static

Definition at line 231 of file wl_init.c.

static void pointerHandleEnter ( void data,
struct wl_pointer *  pointer,
uint32_t  serial,
struct wl_surface *  surface,
wl_fixed_t  sx,
wl_fixed_t  sy 
)
static

Definition at line 81 of file wl_init.c.

static void pointerHandleLeave ( void data,
struct wl_pointer *  pointer,
uint32_t  serial,
struct wl_surface *  surface 
)
static

Definition at line 111 of file wl_init.c.

static void pointerHandleMotion ( void data,
struct wl_pointer *  pointer,
uint32_t  time,
wl_fixed_t  sx,
wl_fixed_t  sy 
)
static

Definition at line 172 of file wl_init.c.

static void registryHandleGlobal ( void data,
struct wl_registry *  registry,
uint32_t  name,
const char *  interface,
uint32_t  version 
)
static

Definition at line 783 of file wl_init.c.

static void registryHandleGlobalRemove ( void data,
struct wl_registry *  registry,
uint32_t  name 
)
static

Definition at line 876 of file wl_init.c.

static void seatHandleCapabilities ( void data,
struct wl_seat *  seat,
enum wl_seat_capability  caps 
)
static

Definition at line 670 of file wl_init.c.

static void seatHandleName ( void data,
struct wl_seat *  seat,
const char *  name 
)
static

Definition at line 697 of file wl_init.c.

static void setCursor ( _GLFWwindow window,
const char *  name 
)
static

Definition at line 128 of file wl_init.c.

static int toGLFWKeyCode ( uint32_t  key)
static

Definition at line 501 of file wl_init.c.

static void wmBaseHandlePing ( void data,
struct xdg_wm_base *  wmBase,
uint32_t  serial 
)
static

Definition at line 772 of file wl_init.c.

Variable Documentation

const struct wl_data_device_listener dataDeviceListener
static
Initial value:
= {
}
static void dataDeviceHandleMotion(void *data, struct wl_data_device *dataDevice, uint32_t time, wl_fixed_t x, wl_fixed_t y)
Definition: wl_init.c:744
static void dataDeviceHandleDrop(void *data, struct wl_data_device *dataDevice)
Definition: wl_init.c:752
static void dataDeviceHandleEnter(void *data, struct wl_data_device *dataDevice, uint32_t serial, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *id)
Definition: wl_init.c:729
static void dataDeviceHandleDataOffer(void *data, struct wl_data_device *dataDevice, struct wl_data_offer *id)
Definition: wl_init.c:718
static void dataDeviceHandleLeave(void *data, struct wl_data_device *dataDevice)
Definition: wl_init.c:739
static void dataDeviceHandleSelection(void *data, struct wl_data_device *dataDevice, struct wl_data_offer *id)
Definition: wl_init.c:757

Definition at line 763 of file wl_init.c.

const struct wl_data_offer_listener dataOfferListener
static
Initial value:
= {
}
static void dataOfferHandleOffer(void *data, struct wl_data_offer *dataOffer, const char *mimeType)
Definition: wl_init.c:708

Definition at line 714 of file wl_init.c.

const struct wl_keyboard_listener keyboardListener
static
Initial value:
= {
}
static void keyboardHandleEnter(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)
Definition: wl_init.c:463
static void keyboardHandleLeave(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface)
Definition: wl_init.c:486
static void keyboardHandleModifiers(void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group)
Definition: wl_init.c:601
static void keyboardHandleKey(void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state)
Definition: wl_init.c:560
static void keyboardHandleKeymap(void *data, struct wl_keyboard *keyboard, uint32_t format, int fd, uint32_t size)
Definition: wl_init.c:361

Definition at line 659 of file wl_init.c.

const struct wl_pointer_listener pointerListener
static
Initial value:
= {
}
static void pointerHandleButton(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state)
Definition: wl_init.c:231
static void pointerHandleMotion(void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t sx, wl_fixed_t sy)
Definition: wl_init.c:172
static void pointerHandleAxis(void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value)
Definition: wl_init.c:326
static void pointerHandleLeave(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface)
Definition: wl_init.c:111
static void pointerHandleEnter(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t sx, wl_fixed_t sy)
Definition: wl_init.c:81

Definition at line 353 of file wl_init.c.

const struct wl_registry_listener registryListener
static
Initial value:
= {
}
static void registryHandleGlobalRemove(void *data, struct wl_registry *registry, uint32_t name)
Definition: wl_init.c:876
static void registryHandleGlobal(void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version)
Definition: wl_init.c:783

Definition at line 895 of file wl_init.c.

const struct wl_seat_listener seatListener
static
Initial value:
= {
}
static void seatHandleCapabilities(void *data, struct wl_seat *seat, enum wl_seat_capability caps)
Definition: wl_init.c:670
static void seatHandleName(void *data, struct wl_seat *seat, const char *name)
Definition: wl_init.c:697

Definition at line 703 of file wl_init.c.

const struct xdg_wm_base_listener wmBaseListener
static
Initial value:
= {
}
static void wmBaseHandlePing(void *data, struct xdg_wm_base *wmBase, uint32_t serial)
Definition: wl_init.c:772

Definition at line 779 of file wl_init.c.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31