/decrypt/camd35.c

https://bitbucket.org/a84/gs_public/ · C · 39 lines · 29 code · 10 blank · 0 comment · 1 complexity · 6f4a2bbd8cfb4c5c23042f05f4c1b78b MD5 · raw file

  1. #include <stdint.h>
  2. #include "camd35.h"
  3. int camd35_send_ecm(cam_t *cam, cam_packet_t *packet) {
  4. return 0;
  5. }
  6. int camd35_send_emm(cam_t *cam, cam_packet_t *packet) {
  7. return 0;
  8. }
  9. int camd35_send_packet(cam_t *cam, cam_packet_t *packet) {
  10. switch(packet->type) {
  11. case PACKET_ECM: return camd35_send_ecm(cam, packet);
  12. case PACKET_EMM: return camd35_send_emm(cam, packet);
  13. default: break;
  14. }
  15. return 0;
  16. }
  17. int camd35_login(cam_t *cam) {
  18. return 0;
  19. }
  20. void camd35_logout(cam_t *cam) {
  21. }
  22. int camd35_init(cam_t *cam) {
  23. cam->login = camd35_login;
  24. cam->logout = camd35_logout;
  25. cam->send_packet = camd35_send_packet;
  26. return 0;
  27. }
  28. void camd35_destroy(cam_t *cam) {
  29. }