ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Struktury danych | Definicje | Definicje typów | Funkcje | Zmienne
Dokumentacja pliku dbus.c
#include "ekg2.h"
#include <errno.h>
#include <string.h>
#include <dbus/dbus.h>
#include "dbus_iface_im.h"
#include "dbus_iface_im_ekg.h"
#include "dbus_iface_im_ekg_ui.h"
#include "dbus_iface_im_ekg_protocol.h"
#include "dbus_iface_im_ekg_session.h"
#include "dbus_iface_im_ekg_crypto.h"
#include "dbus_iface_im_ekg_logging.h"

Struktury danych

struct  ekg2_dbus_watch_data
 

Definicje

#define DBUS_API_SUBJECT_TO_CHANGE
 
#define EKG2_DBUS_MATCH(str)
 

Definicje typów

typedef struct
ekg2_dbus_watch_data
ekg_dbus_watch_data_t
 

Funkcje

static int dbus_plugin_destroy ()
 
DBusHandlerResult ekg2_dbus_message_handler (DBusConnection *conn, DBusMessage *msg, void *empty)
 
int ekg2_dbus_read_watch (int type, int fd, watch_type_t watch, void *data)
 
int ekg2_dbus_write_watch (int type, int fd, watch_type_t watch, void *data)
 
dbus_bool_t ekg2_dbus_add_watch (DBusWatch *w, void *data)
 
void ekg2_dbus_remove_watch (DBusWatch *w, void *data)
 
void ekg2_dbus_toggle_watch (DBusWatch *watch, void *data)
 
 __attribute__ ((visibility("default")))
 

Zmienne

plugin_t dbus_plugin = { .name = "dbus", .pclass = PLUGIN_GENERIC , .destroy = dbus_plugin_destroy, .theme_init = NULL }
 
static DBusConnection * conn
 
static DBusError err
 
static ekg2_dbus_iface_proto_t
const 
ekg2_dbus_interfaces []
 

Dokumentacja definicji

#define DBUS_API_SUBJECT_TO_CHANGE
#define EKG2_DBUS_MATCH (   str)
Wartość:
do { \
dbus_bus_add_match(conn, str, &err); \
if (dbus_error_is_set(&err)) { \
debug("match error at %s (probably resources exhausted): %s\n", str, err.message); \
dbus_connection_close(conn); conn = NULL; \
return -1; \
} \
} while(0)

Dokumentacja definicji typów

Dokumentacja funkcji

__attribute__ ( (visibility("default"))  )
static int dbus_plugin_destroy ( )
static
dbus_bool_t ekg2_dbus_add_watch ( DBusWatch *  w,
void *  data 
)
DBusHandlerResult ekg2_dbus_message_handler ( DBusConnection *  conn,
DBusMessage *  msg,
void *  empty 
)
int ekg2_dbus_read_watch ( int  type,
int  fd,
watch_type_t  watch,
void *  data 
)
void ekg2_dbus_remove_watch ( DBusWatch *  w,
void *  data 
)
void ekg2_dbus_toggle_watch ( DBusWatch *  watch,
void *  data 
)
int ekg2_dbus_write_watch ( int  type,
int  fd,
watch_type_t  watch,
void *  data 
)

Dokumentacja zmiennych

DBusConnection* conn
static
plugin_t dbus_plugin = { .name = "dbus", .pclass = PLUGIN_GENERIC , .destroy = dbus_plugin_destroy, .theme_init = NULL }
ekg2_dbus_iface_proto_t const ekg2_dbus_interfaces[]
static
Wartość początkowa:
=
{
{ "interface='" "org.freedesktop.im" "'",
"org.freedesktop.im" ,
{ "interface='" "org.freedesktop.im" ".ekg2'",
"org.freedesktop.im" ".ekg2",
{ "interface='" "org.freedesktop.im" ".ekg2.ui'",
"org.freedesktop.im" ".ekg2.ui",
{ "interface='" "org.freedesktop.im" ".ekg2.protocol'",
"org.freedesktop.im" ".ekg2.protocol",
{ "interface='" "org.freedesktop.im" ".ekg2.session'",
"org.freedesktop.im" ".ekg2.session",
{ "interface='" "org.freedesktop.im" ".ekg2.crypto'",
"org.freedesktop.im" ".ekg2.crypto",
{ "interface='" "org.freedesktop.im" ".ekg2.logging'",
"org.freedesktop.im" ".ekg2.logging",
}
DBusError err
static