forked from tin2tin/drmdecrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buffer.h
35 lines (29 loc) · 779 Bytes
/
buffer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* drmdecrypt -- DRM decrypting tool for Samsung TVs
*
* Copyright (C) 2014 - Bernhard Froehlich <decke@bluelife.at>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the GPL v2 license. See the LICENSE file for details.
*/
#ifndef _BUFFER_H_
#define _BUFFER_H_
#define READSIZE 4096
#define WRITESIZE 4096
#define PACKETSIZE 188
#define BUFFERSIZE (READSIZE+READSIZE+PACKETSIZE)
struct packetbuffer
{
char *buffer;
char *startp;
char *workp;
char *endp;
int end;
int fdread;
int fdwrite;
};
extern int pbinit(struct packetbuffer *pb);
extern int pbfree(struct packetbuffer *pb);
extern int pbread(struct packetbuffer *pb);
extern int pbwrite(struct packetbuffer *pb);
#endif /* _BUFFER_H_ */