File: gauge.c

package info (click to toggle)
reiser4progs 1.0.9-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,608 kB
  • ctags: 3,844
  • sloc: ansic: 33,541; sh: 10,679; makefile: 1,010
file content (23 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.

   gauge.c -- common for all progs gauge metods. */

#ifndef ENABLE_MINIMAL
#include <aal/libaal.h>
#include <aux/gauge.h>

aal_gauge_handler_t aux_gauge_handlers[GT_LAST];

void aux_gauge_set_handler(aal_gauge_handler_t handler,
			   aux_gauge_type_t type)
{
	aal_assert("vpf-1685", type < GT_LAST);
	aux_gauge_handlers[type] = handler;
}

aal_gauge_handler_t aux_gauge_get_handler(aux_gauge_type_t type) {
	aal_assert("vpf-1685", type < GT_LAST);
	return aux_gauge_handlers[type];
}
#endif