summaryrefslogtreecommitdiff
path: root/p2pvr/lib/siParsers/programAssociation.h
blob: 63c7e4b8af45729a8944a36d0ca0dd609aafa862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PROGRAMASSOCIATION_H
#define PROGRAMASSOCIATION_H

#include "table.h"
#include <p2pvr.h>

struct ProgramAssociationSection {
	SiTableHeader header;
	u_char data[];
} __attribute__((packed));

typedef std::map<uint16_t, uint16_t> ProgramAssociationMap;
typedef boost::shared_ptr<ProgramAssociationMap> ProgramAssociationMapPtr;

class SiProgramAssociationParser : public SiTableParser<ProgramAssociationSection, ProgramAssociationMapPtr, int> {
	protected:
		bool CheckTableId(u_char tableId) const;
		void ParseSiTable(const struct ProgramAssociationSection * pas, ProgramAssociationMapPtr);
};

#endif