vumonitor/vumonitor.cc
/// Handle an answer to a Server query. The hope is that it contains a
/// default sink name, and we can then query sink information.
///
Handle an answer to a Server query. The hope is that it contains a
default sink name, and we can then query sink information.
Handle an answer to a Server query . The hope is that it contains a default sink name and we can then query sink information .
static void
cgxi_cb(pa_context *pcontext, const pa_server_info *server, void *obj)
{
    if (not server) {
        LOG_ERROR(Lgr)  << "null server info?";
    }
    else if (not server->default_sink_name) {
        LOG_ERROR(Lgr)  << "missing default sink name?";
    }
    else {
        auto op = pa_context_get_sink_info_by_name(pcontext, server->default_sink_name,
                                                   cgsi_cb, obj);
        pa_operation_unref(op);
    }
}
static void cgxi_cb ( pa_context * pcontext , const pa_server_info * server , void * obj ) { if ( not server ) { LOG_ERROR ( Lgr ) << " " ; } else if ( not server -> default_sink_name ) { LOG_ERROR ( Lgr ) << " " ; } else { auto op = pa_context_get_sink_info_by_name ( pcontext , server -> default_sink_name , cgsi_cb , obj ) ; pa_operation_unref ( op ) ; } }
Handle an answer to a Server query.
Handle an answer to a Server query .