mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2018-03-11 Fred Gleason <fredg@paravelsystems.com>
* Converted ripcd(8) to use RDApplication. * Documented a 'Notification' message type in 'docs/apis/notification.xml'. * Added an 'RDMulticaster' class. * Added an 'mcast_recv_test' program in 'tests/'. * Added a 'SYSTEM.NOTIFICATION_ADDRESS' field to the database. * Incremented the database version to 276. * Added an 'Mcast Address for Notifications' control to the 'System-Wide Settings' dialog in rdadmin(1). * Implemented the 'Process Notification' ['ON'] command in ripcd(8). * Added an 'RDRipc::sendNotification()' method. * Added an 'RDRipc::notificationReceived()' signal.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Rivendell switcher driver for the UNITY4000
|
||||
//
|
||||
// (C) Copyright 2002-2003,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2003,2016-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -20,10 +20,11 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <rdapplication.h>
|
||||
#include <rddb.h>
|
||||
|
||||
#include <globals.h>
|
||||
#include <unity4000.h>
|
||||
#include "globals.h"
|
||||
#include "unity4000.h"
|
||||
|
||||
Unity4000::Unity4000(RDMatrix *matrix,QObject *parent)
|
||||
: Switcher(matrix,parent)
|
||||
@@ -43,7 +44,7 @@ Unity4000::Unity4000(RDMatrix *matrix,QObject *parent)
|
||||
sql=QString().sprintf("select NUMBER,FEED_NAME,CHANNEL_MODE from INPUTS \
|
||||
where STATION_NAME=\"%s\" && MATRIX=%d \
|
||||
order by NUMBER",
|
||||
(const char *)rdstation->name(),
|
||||
(const char *)rda->station()->name(),
|
||||
matrix->matrix());
|
||||
q=new RDSqlQuery(sql);
|
||||
q->first();
|
||||
@@ -60,7 +61,7 @@ Unity4000::Unity4000(RDMatrix *matrix,QObject *parent)
|
||||
//
|
||||
// Initialize the TTY Port
|
||||
//
|
||||
RDTty *tty=new RDTty(rdstation->name(),matrix->port(RDMatrix::Primary));
|
||||
RDTty *tty=new RDTty(rda->station()->name(),matrix->port(RDMatrix::Primary));
|
||||
unity_device=new RDTTYDevice();
|
||||
if(tty->active()) {
|
||||
unity_device->setName(tty->port());
|
||||
|
||||
Reference in New Issue
Block a user