diff options
Diffstat (limited to 'generic/perfos.h')
-rw-r--r-- | generic/perfos.h | 120 |
1 files changed, 38 insertions, 82 deletions
diff --git a/generic/perfos.h b/generic/perfos.h index 74df033..9e5627c 100644 --- a/generic/perfos.h +++ b/generic/perfos.h @@ -1,57 +1,32 @@ /* - *----------------------------------------------------------------------- - *----------------------------------------------------------------------- - * - * File: perfos.h - * - * Project: Hegias - * - * Abstract: Header for perf module. - * - *----------------------------------------------------------------------- - *----------------------------------------------------------------------- - */ - - -/* - *----------------- Distribution and Copyright -------------------------- - * - * This software is copyright by the CENA/DGAC/FRANCE - * All rights reserved. - * - * No part of the material protected by this copyright notice - * may be reproduced or utilized for commercial use in any form - * without written permission of the copyright owner. + * perfos.h -- Header for perf module. * - * It may be reproduced or utilized for R&D use in Non Profit - * Organization. + * Authors : Patrick Lecoanet. + * Creation date : * - *----------------------------------------------------------------------- + * $Id$ */ - /* - *----------------- Disclaimer ------------------------------------------ + * Copyright (c) 1996 2000 CENA, Patrick Lecoanet -- * - * This software and its documentation are provided "AS IS" and - * without any expressed or implied warranties whatsoever. - * No warranties as to performance, merchantability, or fitness - * for a particular purpose exist. + * This code is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. * - * Because of the diversity of conditions and hardware under - * which this software may be used, no warranty of fitness for - * a particular purpose is offered. The user is advised to - * test the software thoroughly before relying on it. The user - * must assume the entire risk and liability of using this - * software. + * This code is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. * - * In no event shall any person or organization of people be - * held responsible for any direct, indirect, consequential - * or inconsequential damages or lost profits. + * You should have received a copy of the GNU Library General Public + * License along with this code; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * - *----------------------------------------------------------------------- */ + #ifndef _perfos_h #define _perfos_h @@ -59,15 +34,6 @@ extern "C" { #endif - -/* - *----------------------------------------------------------------------- - * - * Included files. - * - *----------------------------------------------------------------------- - */ - #include <stdio.h> #include <math.h> #include <sys/types.h> @@ -75,37 +41,27 @@ extern "C" { #include <sys/times.h> #include <X11/Xlib.h> - -typedef struct -{ - long current_correction; - long current_delay; - long total_delay; - int actions; - char *message; -} ChronoRec, *Chrono; - - - -/* - *----------------------------------------------------------------------- - * - * Prototypes for exported functions. - * - *----------------------------------------------------------------------- - */ - -void XStartChrono(Chrono /* chrono */, Display */* display */, Drawable /* window */); -void XStopChrono(Chrono /* chrono */, Display */* display */, Drawable /* window */); -void StartChrono(Chrono /* chrono */); -void StopChrono(Chrono /* chrono */); -void StartUCChrono(Chrono /* chrono */); -void StopUCChrono(Chrono /* chrono */); -Chrono NewChrono(char */* message */); -void FreeChrono(Chrono /* chrono */); -void PrintChronos(void); -void RazChronos(void); - + typedef struct + { + long current_correction; + long current_delay; + long total_delay; + int actions; + char *message; + } ChronoRec, *Chrono; + + + void XStartChrono(Chrono /*chrono*/, Display */*dpy*/, Drawable /*win*/); + void XStopChrono(Chrono /*chrono*/, Display */*dpy*/, Drawable /*win*/); + void StartChrono(Chrono /*chrono*/); + void StopChrono(Chrono /*chrono*/); + void StartUCChrono(Chrono /*chrono*/); + void StopUCChrono(Chrono /*chrono*/); + Chrono NewChrono(char */*message*/); + void FreeChrono(Chrono /*chrono*/); + void PrintChronos(void); + void GetChrono(Chrono /*chrono*/, long */*time*/, int */*actions*/); + void ResetChronos(Chrono /*chrono*/); #ifdef __CPLUSPLUS__ } |