mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-29 18:50:16 +00:00
19 lines
582 B
C
19 lines
582 B
C
#ifndef MULTI_OUT_H
|
|
#define MULTI_OUT_H
|
|
|
|
#include <stdio.h>
|
|
#include "containers/lhmsv.h"
|
|
#include "output/file_output_mode.h"
|
|
|
|
// ----------------------------------------------------------------
|
|
typedef struct _multi_out_t {
|
|
// xxx to do: bound the number of open files and LRU them.
|
|
lhmsv_t* pnames_to_fps;
|
|
} multi_out_t;
|
|
|
|
// ----------------------------------------------------------------
|
|
multi_out_t* multi_out_alloc();
|
|
void multi_out_free(multi_out_t* pmo);
|
|
FILE* multi_out_get(multi_out_t* pmo, char* filename, file_output_mode_t file_output_mode);
|
|
|
|
#endif // MULTI_OUT_H
|