summaryrefslogtreecommitdiff
path: root/src/libnml/rcs/rcs_exit.hh
blob: 7c20ac70a76f17e3a2509091bf08ea5990031b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/********************************************************************
* Description: rcs_exit.hh
*   This module provides a portable way to make sure multiple
*   functions are called before exiting.
*   These functions should be written to take an int  and return void.
*
*   Derived from a work by Fred Proctor & Will Shackleford
*
* Author:
* License: LGPL Version 2
* System: Linux
*    
* Copyright (c) 2004 All rights reserved.
*
* Last change: 
********************************************************************/
#ifndef RCS_EXIT_HH
#define RCS_EXIT_HH

#ifdef __cplusplus
extern "C" {
#endif

    int attach_rcs_exit_list(void (*fptr) (int));
    void rcs_cleanup(int code);
    void rcs_exit(int code);

#ifdef __cplusplus
}
#endif
#endif