libcfe  0.12.1
some useful C-functions
knotify.c File Reference
#include "config.h"
#include "knotify.h"
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <dirent.h>
#include <string.h>
#include <libintl.h>
#include "output.h"
#include "len.h"
#include "char_to_int.h"
#include "check_path_exists.h"
Include dependency graph for knotify.c:

Go to the source code of this file.

Macros

#define UNUSED(x)   (void)(x)
 Used to indicate that a function does not use a certain parameter. More...
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 

Functions

int check (const struct dirent *e)
 
uid_t find_dbus_user (void)
 
int kdenotify (char *app, char *title, char *text)
 

Macro Definition Documentation

◆ MIN

#define MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 26 of file knotify.c.

◆ UNUSED

#define UNUSED (   x)    (void)(x)

Used to indicate that a function does not use a certain parameter.

Definition at line 23 of file knotify.c.

Function Documentation

◆ check()

int check ( const struct dirent *  e)

Definition at line 34 of file knotify.c.

Here is the caller graph for this function:

◆ find_dbus_user()

uid_t find_dbus_user ( void  )

Definition at line 43 of file knotify.c.

Here is the call graph for this function:

◆ kdenotify()

int kdenotify ( char *  app,
char *  title,
char *  text 
)

Sent a message to KDE's knotify system via D-Bus.

Parameters
[in]appName off the originating program (NULL uses "kde").
[in]titleShort title for this message.
[in]textThe text (body) of this message.
Returns
return value
  • 0 succeed
  • 1 failed

Definition at line 128 of file knotify.c.