DRM decrypting tool for Samsung TVs PVR
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

buffer.h 779B

1234567891011121314151617181920212223242526272829303132333435
  1. /* drmdecrypt -- DRM decrypting tool for Samsung TVs
  2. *
  3. * Copyright (C) 2014 - Bernhard Froehlich <decke@bluelife.at>
  4. * All rights reserved.
  5. *
  6. * This software may be modified and distributed under the terms
  7. * of the GPL v2 license. See the LICENSE file for details.
  8. */
  9. #ifndef _BUFFER_H_
  10. #define _BUFFER_H_
  11. #define READSIZE 4096
  12. #define WRITESIZE 4096
  13. #define PACKETSIZE 188
  14. #define BUFFERSIZE (READSIZE+READSIZE+PACKETSIZE)
  15. struct packetbuffer
  16. {
  17. char *buffer;
  18. char *startp;
  19. char *workp;
  20. char *endp;
  21. int end;
  22. int fdread;
  23. int fdwrite;
  24. };
  25. extern int pbinit(struct packetbuffer *pb);
  26. extern int pbfree(struct packetbuffer *pb);
  27. extern int pbread(struct packetbuffer *pb);
  28. extern int pbwrite(struct packetbuffer *pb);
  29. #endif /* _BUFFER_H_ */