open-cas-linux/casadm/statistics_view_structs.h
Rafal Stefanowski acec05060d Fix license
Change license to BSD-3-Clause

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-10-28 12:46:42 +02:00

30 lines
539 B
C

/*
* Copyright(c) 2012-2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __STATS_VIEW_S_H
#define __STATS_VIEW_S_H
struct csv_out_prv;
struct text_out_prv;
struct view_t
{
FILE *outfile;
union {
struct csv_out_prv *csv_prv;
struct text_out_prv *text_prv;
} ctx;
/* type specific init */
int (*construct)(struct view_t *this);
int (*process_row)(struct view_t *this, int type, int num_fields, char *fields[]);
int (*end_input)(struct view_t *this);
int (*destruct)(struct view_t *this);
};
#endif