Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
dbus.h File Reference

DBus support and implementation of the Desktop Notifications Specification. More...

#include "dunst.h"
#include "notification.h"
+ Include dependency graph for dbus.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  reason {
  REASON_MIN = 1 , REASON_TIME = 1 , REASON_USER = 2 , REASON_SIG = 3 ,
  REASON_UNDEF = 4 , REASON_MAX = 4
}
 The reasons according to the notification spec. More...
 

Functions

int dbus_init (void)
 
void dbus_teardown (int id)
 
void signal_notification_closed (struct notification *n, enum reason reason)
 
void signal_action_invoked (const struct notification *n, const char *identifier)
 
void signal_length_propertieschanged (void)
 
void signal_paused_propertieschanged (void)
 
void signal_history_removed (guint id)
 
void signal_history_cleared (guint n)
 
void signal_config_reloaded (char **const configs)
 

Detailed Description

DBus support and implementation of the Desktop Notifications Specification.

License
BSD-3-Clause

Definition in file dbus.h.

Enumeration Type Documentation

◆ reason

enum reason

The reasons according to the notification spec.

Enumerator
REASON_MIN 

Minimum value, useful for boundary checking.

REASON_TIME 

The notification timed out.

REASON_USER 

The user closed the notification.

REASON_SIG 

The daemon received a NotificationClose signal.

REASON_UNDEF 

Undefined reason not matching the previous ones.

REASON_MAX 

Maximum value, useful for boundary checking.

Definition at line 18 of file dbus.h.

Function Documentation

◆ dbus_init()

int dbus_init ( void )

Definition at line 1443 of file dbus.c.

◆ dbus_teardown()

void dbus_teardown ( int id)

Definition at line 1532 of file dbus.c.

◆ signal_action_invoked()

void signal_action_invoked ( const struct notification * n,
const char * identifier )

Definition at line 1165 of file dbus.c.

◆ signal_config_reloaded()

void signal_config_reloaded ( char **const configs)

Definition at line 1508 of file dbus.c.

◆ signal_history_cleared()

void signal_history_cleared ( guint n)

Definition at line 1485 of file dbus.c.

◆ signal_history_removed()

void signal_history_removed ( guint id)

Definition at line 1462 of file dbus.c.

◆ signal_length_propertieschanged()

void signal_length_propertieschanged ( void )

Definition at line 942 of file dbus.c.

◆ signal_notification_closed()

void signal_notification_closed ( struct notification * n,
enum reason reason )

Definition at line 1108 of file dbus.c.

◆ signal_paused_propertieschanged()

void signal_paused_propertieschanged ( void )

Definition at line 1008 of file dbus.c.