// free_data_function function to use for freeing user data
//Adds a message filter.
if (!dbus_connection_add_filter (dbconn, filter_func, NULL, NULL))
return EXIT_FAILURE;
dbus_bool_t dbus_connection_add_filter ( DBusConnection * connection, DBusHandleMessageFunction function, void * user_data, DBusFreeFunction free_data_function ) // connection the connection // function function to handle messages // user_data user data to pass to the function // free_data_function function to use for freeing user data //Adds a message filter. if (!dbus_connection_add_filter (dbconn, filter_func, NULL, NULL)) return EXIT_FAILURE;