forked from psadeghi123/lireader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlitocsv.h
36 lines (28 loc) · 935 Bytes
/
litocsv.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
35
36
//
// litocsv.h
// liquidreader
//
// Created by Antony Searle on 19/10/16.
// Copyright © 2016 Antony Searle. All rights reserved.
//
#ifndef litocsv_h
#define litocsv_h
#include <stdio.h> // for FILE
#include <stdint.h> // for uint64_t
#include "lireader.h"
#ifdef __cplusplus
extern "C" {
#endif
// Read a Liquid Instruments binary log file file and write a Comma
// Separated Value (CSV) file. Files must be open for binary reading and
// writing respectively. Optionally provide a callback that will report
// whenever bytes are read from input or written to output. user_ptr is
// passed unchanged to the callback.
li_status li_to_csv(FILE* input,
FILE* output,
void (*callback)(void* user_ptr, uint64_t bytes_read, uint64_t bytes_written),
void* user_ptr);
#ifdef __cplusplus
}
#endif
#endif /* litocsv_h */