initial commit
[arib_std_b25.git] / src / arib_std_b25.h
blob3b67538e1bb7f7117c9dab30c66751db37566466
1 #ifndef ARIB_STD_B25_H
2 #define ARIB_STD_B25_H
4 #include "portable.h"
5 #include "b_cas_card.h"
7 typedef struct {
8 uint8_t *data;
9 int32_t size;
10 } ARIB_STD_B25_BUFFER;
12 typedef struct {
14 int32_t program_number; /* channel */
16 int32_t ecm_unpurchased_count;
17 int32_t last_ecm_error_code;
19 int32_t padding;
21 int64_t total_packet_count;
22 int64_t undecrypted_packet_count;
24 } ARIB_STD_B25_PROGRAM_INFO;
26 typedef struct {
28 void *private_data;
30 void (* release)(void *std_b25);
32 int (* set_multi2_round)(void *std_b25, int32_t round);
33 int (* set_strip)(void *std_b25, int32_t strip);
34 int (* set_emm_proc)(void *std_b25, int32_t on);
36 int (* set_b_cas_card)(void *std_b25, B_CAS_CARD *bcas);
38 int (* reset)(void *std_b25);
39 int (* flush)(void *std_b25);
41 int (* put)(void *std_b25, ARIB_STD_B25_BUFFER *buf);
42 int (* get)(void *std_b25, ARIB_STD_B25_BUFFER *buf);
44 int (* get_program_count)(void *std_b25);
45 int (* get_program_info)(void *std_b25, ARIB_STD_B25_PROGRAM_INFO *info, int32_t idx);
47 } ARIB_STD_B25;
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
53 extern ARIB_STD_B25 *create_arib_std_b25();
55 #ifdef __cplusplus
57 #endif
59 #endif /* ARIB_STD_B25_H */