Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
wl_output.c File Reference
#include "wl_output.h"
#include "../dunst.h"
#include "../log.h"
#include "wl_ctx.h"
+ Include dependency graph for wl_output.c:

Go to the source code of this file.

Macros

#define _POSIX_C_SOURCE   200112L
 

Functions

static void output_handle_geometry (void *data, struct wl_output *wl_output, int32_t x, int32_t y, int32_t phy_width, int32_t phy_height, int32_t subpixel, const char *make, const char *model, int32_t transform)
 
static void output_handle_mode (void *data, struct wl_output *wl_output, uint32_t flags, int32_t width, int32_t height, int32_t refresh)
 
static void output_handle_scale (void *data, struct wl_output *wl_output, int32_t factor)
 
static void output_listener_done_handler (void *data, struct wl_output *output)
 
void create_output (struct wl_registry *registry, uint32_t global_name, uint32_t version)
 
void destroy_output (struct dunst_output *output)
 

Variables

static const struct wl_output_listener output_listener
 

Detailed Description

License
BSD-3-Clause

Definition in file wl_output.c.

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200112L

Definition at line 8 of file wl_output.c.

Function Documentation

◆ create_output()

void create_output ( struct wl_registry * registry,
uint32_t global_name,
uint32_t version )

Definition at line 66 of file wl_output.c.

◆ destroy_output()

void destroy_output ( struct dunst_output * output)

Definition at line 100 of file wl_output.c.

◆ output_handle_geometry()

static void output_handle_geometry ( void * data,
struct wl_output * wl_output,
int32_t x,
int32_t y,
int32_t phy_width,
int32_t phy_height,
int32_t subpixel,
const char * make,
const char * model,
int32_t transform )
static

Definition at line 15 of file wl_output.c.

◆ output_handle_mode()

static void output_handle_mode ( void * data,
struct wl_output * wl_output,
uint32_t flags,
int32_t width,
int32_t height,
int32_t refresh )
static

Definition at line 23 of file wl_output.c.

◆ output_handle_scale()

static void output_handle_scale ( void * data,
struct wl_output * wl_output,
int32_t factor )
static

Definition at line 30 of file wl_output.c.

◆ output_listener_done_handler()

static void output_listener_done_handler ( void * data,
struct wl_output * output )
static

Definition at line 51 of file wl_output.c.

Variable Documentation

◆ output_listener

const struct wl_output_listener output_listener
static
Initial value:
= {
.geometry = output_handle_geometry,
.mode = output_handle_mode,
.done = output_listener_done_handler,
.scale = output_handle_scale,
}

Definition at line 55 of file wl_output.c.