Commit 696dcd4f authored by npzacs's avatar npzacs
Browse files

Hide implementation details

parent add2ac38
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
#include <stdio.h> #include <stdio.h>
struct mkb {
size_t size; // file size
uint8_t *buf; // file contents
};
uint8_t *_record(MKB *mkb, uint8_t type, size_t *rec_len) uint8_t *_record(MKB *mkb, uint8_t type, size_t *rec_len)
{ {
size_t pos = 0, len = 0; size_t pos = 0, len = 0;
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#include <stdint.h> #include <stdint.h>
typedef struct mkb MKB; typedef struct mkb MKB;
struct mkb {
size_t size; // file size
uint8_t *buf; // file contents
};
MKB *mkb_open(const char *path); // init MKB MKB *mkb_open(const char *path); // init MKB
void mkb_close(MKB *mkb); // free MKB void mkb_close(MKB *mkb); // free MKB
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment