Switch to unified view

a/upexplo/upexplo.cxx b/upexplo/upexplo.cxx
...
...
23
#include <string>
23
#include <string>
24
#include <iostream>
24
#include <iostream>
25
#include <vector>
25
#include <vector>
26
using namespace std;
26
using namespace std;
27
27
28
#include "upnpplib.hxx"
28
#include "libupnpp/upnpplib.hxx"
29
#include "discovery.hxx"
29
#include "libupnpp/discovery.hxx"
30
#include "cdirectory.hxx"
30
#include "libupnpp/cdirectory.hxx"
31
31
32
void listServers(LibUPnP *lib, UPnPDeviceDirectory *superdir)
32
void listServers(LibUPnP *lib, UPnPDeviceDirectory *superdir)
33
{
33
{
34
    cerr << "Servers:" << endl;
34
    cerr << "Servers:" << endl;
35
    vector<ContentDirectoryService> dirservices;
35
    vector<ContentDirectoryService> dirservices;
...
...
225
        cerr << "Discovery services startup failed" << endl;
225
        cerr << "Discovery services startup failed" << endl;
226
        return 1;
226
        return 1;
227
    }
227
    }
228
228
229
    if ((op_flags & OPT_l)) {
229
    if ((op_flags & OPT_l)) {
230
      while (true) {
230
        listServers(mylib, superdir);
231
         listServers(mylib, superdir);
232
          sleep(5);
233
      }
231
    } else if ((op_flags & OPT_m)) {
234
    } else if ((op_flags & OPT_m)) {
232
        getMetadata(mylib, superdir, fname, arg);
235
        getMetadata(mylib, superdir, fname, arg);
233
    } else if ((op_flags & OPT_r)) {
236
    } else if ((op_flags & OPT_r)) {
234
        readdir(mylib, superdir, fname, arg);
237
        readdir(mylib, superdir, fname, arg);
235
    } else if ((op_flags & OPT_s)) {
238
    } else if ((op_flags & OPT_s)) {