mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
38 lines
741 B
C
38 lines
741 B
C
/*
|
|
* =====================================================================================
|
|
*
|
|
* Filename: opt.h
|
|
*
|
|
* Description:
|
|
*
|
|
* Version: 1.0
|
|
* Created: 25.07.2014 15:02:15
|
|
* Revision: none
|
|
* Compiler: gcc
|
|
*
|
|
* Author: Georg Wassen (gw) (),
|
|
* Company:
|
|
*
|
|
* =====================================================================================
|
|
*/
|
|
|
|
#ifndef __OPT_H__
|
|
#define __OPT_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
struct opt {
|
|
unsigned secs;
|
|
enum {stat, hist, list} mode;
|
|
uint64_t tps;
|
|
uint64_t threshold;
|
|
|
|
unsigned hist_cnt;
|
|
unsigned hist_width;
|
|
|
|
unsigned list_cnt;
|
|
};
|
|
|
|
int opt(int argc, char *argv[], struct opt *opt);
|
|
|
|
#endif // __OPT_H__
|