PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/decrypt/camd35.c

https://bitbucket.org/a84/gs_public/
C | 39 lines | 29 code | 10 blank | 0 comment | 0 complexity | 6f4a2bbd8cfb4c5c23042f05f4c1b78b MD5 | raw file
 1
 2#include <stdint.h>
 3
 4#include "camd35.h"
 5
 6int camd35_send_ecm(cam_t *cam, cam_packet_t *packet) {
 7	return 0;
 8}
 9
10int camd35_send_emm(cam_t *cam, cam_packet_t *packet) {
11	return 0;
12}
13
14int camd35_send_packet(cam_t *cam, cam_packet_t *packet) {
15	switch(packet->type) {
16		case PACKET_ECM: return camd35_send_ecm(cam, packet);
17		case PACKET_EMM: return camd35_send_emm(cam, packet);
18		default: break;
19	}
20	return 0;
21}
22
23int camd35_login(cam_t *cam) {
24	return 0;
25}
26
27void camd35_logout(cam_t *cam) {
28}
29
30int camd35_init(cam_t *cam) {
31	cam->login = camd35_login;
32	cam->logout = camd35_logout;
33	cam->send_packet = camd35_send_packet;
34
35	return 0;
36}
37
38void camd35_destroy(cam_t *cam) {
39}