summaryrefslogtreecommitdiff
path: root/service.h
blob: 0fa612cd9bebddcd016ecc10ad1be3462bb1d2a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * service.h: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#ifndef __RADIO_SERVICE_H
#define __RADIO_SERVICE_H

#include <string>

// --- Service Interface -------------------------------------------------------

struct RadioTextService_v1_0 {
   int rds_info;           // 0= no / 1= Text / 2= Text + RTplus-Tags (Item,Artist)
   int rds_pty;            // 0-31
   char *rds_text;
   char *rds_title;
   char *rds_artist;
   struct tm *title_start;
};

struct RadioTextService_v1_1 {
   int rds_info;           // 0= no / 1= Text / 2= Text + RTplus-Tags (Item,Artist)
   int rds_pty;            // 0-31
   std::string rds_pty_info;
   std::string rds_text;
   std::string rds_title;
   std::string rds_artist;
   time_t title_start;
};

#define RADIO_TEXT_SERVICE0   "RadioTextService-v1.0"
#define RADIO_TEXT_SERVICE1   "RadioTextService-v1.1"
#define RADIO_TEXT_UPDATE     "RadioTextUpdate-v1.0"

#endif // __RADIO_SERVICE_H