Debian Codegraph @

ext/GOTCHA/include/gotcha/gotcha_types.h

raw symbols SCIP
1 /*
2 This file is part of GOTCHA. For copyright information see the COPYRIGHT
3 file in the top level directory, or at
4 https://github.com/LLNL/gotcha/blob/master/COPYRIGHT
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU Lesser General Public License (as published by the Free
7 Software Foundation) version 2.1 dated February 1999. This program is
8 distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 without even the IMPLIED WARRANTY OF MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 PURPOSE. See the terms and conditions of the GNU Lesser General Public License
11 for more details. You should have received a copy of the GNU Lesser General
12 Public License along with this program; if not, write to the Free Software
13 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
14 */
15 /*!
16 ******************************************************************************
17 *
18 * \file gotcha_types.h
19 *
20 * \brief Header file containing the internal gotcha types
21 *
22 ******************************************************************************
23 */
24 #ifndef GOTCHA_TYPES_H
25 #define GOTCHA_TYPES_H
26
27 #if defined(__cplusplus)
28 extern "C" {
29 #endif
30
31 typedef void *gotcha_wrappee_handle_t;
32
33 /*!
34 * The representation of a Gotcha action
35 * as it passes through the pipeline
36 */
37 typedef struct gotcha_binding_t {
38 const char *name; //!< The name of the function being wrapped
39 void *wrapper_pointer; //!< A pointer to the wrapper function
40 gotcha_wrappee_handle_t
41 *function_handle; //!< A pointer to the function being wrapped
42 } gotcha_binding_t;
43
44 /*!
45 * The representation of an error (or success) of a Gotcha action
46 */
47 typedef enum gotcha_error_t {
48 GOTCHA_SUCCESS = 0, //!< The call succeeded
49 GOTCHA_FUNCTION_NOT_FOUND, //!< The call looked up a function which could not
50 //!< be found
51 GOTCHA_INTERNAL, //!< Internal gotcha error
52 GOTCHA_INVALID_TOOL //!< Invalid tool name
53 } gotcha_error_t;
54
55 #if defined(__cplusplus)
56 }
57 #endif
58
59 #endif