5
5
* Copyright (C) 2002-2007 The Regents of the University of California.
6
6
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
7
* Written by Danny Auble <da@llnl.gov>
8
* CODE-OCEC-09-009. All rights reserved.
10
10
* This file is part of SLURM, a resource management program.
11
* For details, see <http://www.llnl.gov/linux/slurm/>.
11
* For details, see <https://computing.llnl.gov/linux/slurm/>.
12
* Please also read the included file: DISCLAIMER.
13
14
* SLURM is free software; you can redistribute it and/or modify it under
14
15
* the terms of the GNU General Public License as published by the Free
68
69
#include "src/common/list.h"
71
uint16_t len; /* what is the width of the print */
72
int len; /* what is the width of the print */
72
73
char *name; /* name to be printed in header */
73
74
void (*print_routine) (); /* what is the function to print with */
74
75
uint16_t type; /* defined in the local function */
88
89
extern void print_fields_date(print_field_t *field, time_t value, int last);
89
90
extern void print_fields_str(print_field_t *field, char *value, int last);
90
91
extern void print_fields_int(print_field_t *field, int value, int last);
92
extern void print_fields_double(print_field_t *field, double value, int last);
93
extern void print_fields_long_double(
94
print_field_t *field, long double value, int last);
91
95
extern void print_fields_uint32(
92
96
print_field_t *field, uint32_t value, int last);
93
97
extern void print_fields_uint64(
94
98
print_field_t *field, uint64_t value, int last);
95
extern void print_fields_time(print_field_t *field, uint32_t value, int last);
99
extern void print_fields_time_from_mins(print_field_t *field,
100
uint32_t value, int last);
101
extern void print_fields_time_from_secs(print_field_t *field,
102
uint32_t value, int last);
96
103
extern void print_fields_char_list(print_field_t *field, List value, int last);
98
105
#define print_fields_uint print_fields_uint32
106
#define print_fields_time print_fields_time_from_mins