#include <dbus/dbus.h>
Go to the source code of this file.
◆ lws_dbus_ctx
Definition at line 43 of file lws-dbus.h.
 
| Data Fields | 
| 
struct lws_dll2_owner | 
owner | 
 | 
| 
struct lws_dll2 | 
next | 
 | 
| 
struct lws_vhost * | 
vh | 
 | 
| 
int | 
tsi | 
 | 
| 
DBusConnection * | 
conn | 
 | 
| 
DBusServer * | 
dbs | 
 | 
| 
DBusWatch * | 
w[4] | 
 | 
| 
DBusPendingCall * | 
pc | 
 | 
| 
char | 
hup | 
 | 
| 
char | 
timeouts | 
 | 
| 
lws_dbus_closing_t | 
cb_closing | 
 | 
 
 
◆ lws_dbus_message_handler
      
        
          | typedef DBusHandlerResult(* lws_dbus_message_handler) (DBusConnection *conn, DBusMessage *message, DBusMessage **reply, void *d) | 
        
      
 
 
◆ lws_dbus_closing_t
      
        
          | typedef void(* lws_dbus_closing_t) (struct lws_dbus_ctx *ctx) | 
        
      
 
 
◆ lws_dbus_connection_setup()
lws_dbus_connection_setup() - bind dbus connection object to lws event loop
- Parameters
 - 
  
    | ctx | additional information about the connection  | 
    | conn | the DBusConnection object to bind | 
  
   
This configures a DBusConnection object to use lws for watchers and timeout operations. 
References LWS_EXTERN, and LWS_VISIBLE.
 
 
◆ lws_dbus_server_listen()
lws_dbus_server_listen() - bind dbus connection object to lws event loop
- Parameters
 - 
  
    | ctx | additional information about the connection  | 
    | ads | the DBUS address to listen on, eg, "unix:abstract=mysocket"  | 
    | err | a DBusError object to take any extra error information  | 
    | new_conn | a callback function to prepare new accepted connections | 
  
   
This creates a DBusServer and binds it to the lws event loop, and your callback to accept new connections.