1
0
mirror of https://github.com/JvanKatwijk/dab-cmdline synced 2025-10-05 23:52:50 +02:00

modification to main to set name right when a service is selected by number

This commit is contained in:
JvanKatwijk
2017-11-08 13:36:20 +01:00
parent 26f041a0ca
commit b7333314a9
7 changed files with 18 additions and 5 deletions

View File

@@ -334,10 +334,10 @@ deviceHandler *theDevice;
exit (22);
}
fprintf (stderr, "going to start program %s\n", programName. c_str ());
run. store (true);
if (serviceId != -1)
programName = dab_getserviceName (serviceId, theRadio);
fprintf (stderr, "we try to start program %s\n", programName. c_str ());
if (dabService (programName, theRadio) < 0) {
fprintf (stderr, "sorry we cannot handle service %s\n",
programName. c_str ());

View File

@@ -441,10 +441,11 @@ bool err;
exit (22);
}
fprintf (stderr, "going to start program %s\n", programName. c_str ());
run. store (true);
if (serviceIdentifier != -1)
programName = theRadio -> dab_getserviceName (serviceIdentifier);
fprintf (stderr, "we try to start program %s\n",
programName. c_str ());
if (theRadio -> dab_service (programName) < 0) {
fprintf (stderr, "sorry we cannot handle service %s\n",
programName. c_str ());

View File

@@ -400,10 +400,10 @@ bool err;
exit (22);
}
fprintf (stderr, "going to start program %s\n", programName. c_str ());
run. store (true);
if (serviceIdentifier != -1)
programName = theRadio -> dab_getserviceName (serviceIdentifier);
fprintf (stderr, "going to start program %s\n", programName. c_str ());
if (theRadio -> dab_service (programName) < 0) {
fprintf (stderr, "sorry we cannot handle service %s\n",
programName. c_str ());

View File

@@ -402,10 +402,10 @@ bool err;
exit (22);
}
fprintf (stderr, "going to start program %s\n", programName. c_str ());
run. store (true);
if (serviceIdentifier != -1)
programName = theRadio -> dab_getserviceName (serviceIdentifier);
fprintf (stderr, "we try to start program %s\n", programName. c_str ());
if (theRadio -> dab_service (programName) < 0) {
fprintf (stderr, "sorry we cannot handle service %s\n",
programName. c_str ());

View File

@@ -143,6 +143,7 @@ endif ()
include_directories (
${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
.
/usr/lib64/python3.5/site-packages/numpy/core/include/
./
../
../library/

View File

@@ -0,0 +1,11 @@
#ifndef Py_ARRAYOBJECT_H
#define Py_ARRAYOBJECT_H
#include "ndarrayobject.h"
#include "npy_interrupt.h"
#ifdef NPY_NO_PREFIX
#include "noprefix.h"
#endif
#endif

View File

@@ -450,7 +450,7 @@ void *result;
false,
0);
#else
theDevice = new devicehandler ();
theDevice = new deviceHandler ();
#endif
}