Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
29
casadm/statistics_view_structs.h
Normal file
29
casadm/statistics_view_structs.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2019 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
#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
|
||||
|
Reference in New Issue
Block a user