diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1998-09-29 07:58:46 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1998-09-29 07:58:46 +0000 |
commit | 2ef2d714406fb3b741e56b1609d0d76bfdcd1af0 (patch) | |
tree | db70ad04e1cbf78601705a9cba7c15afccfdbe68 /src/include/RegisterKeyedFunction.h | |
parent | 549a5b50599aa8e5d9e1aafc1b7ed224a4c735c0 (diff) |
Header file for keyed function stuff.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@8 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/RegisterKeyedFunction.h')
-rw-r--r-- | src/include/RegisterKeyedFunction.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/include/RegisterKeyedFunction.h b/src/include/RegisterKeyedFunction.h new file mode 100644 index 00000000..1d0c8c73 --- /dev/null +++ b/src/include/RegisterKeyedFunction.h @@ -0,0 +1,43 @@ + /*@@ + @header RegisterKeyedFunction.h + @date Tue Sep 29 09:41:49 1998 + @author Tom Goodale + @desc + Header file for keyed function registration. + @enddesc + @@*/ + +/* $Id$ */ + + +#ifndef _REGISTERKEYEDFUNCTION_H_ +#define _REGISTERKEYEDFUNCTION_H_ + +/*****************************************************/ +/* Function prototypes. */ + +#ifdef _cplusplus +extern "C" { +#endif + +int RegisterKeyedFunction(void (*array[])(), + int min, int max, + int key, void (*func)()); + +#ifdef _cplusplus + } +#endif + +/*****************************************************/ + +/* Possible return codes. */ + +enum RegisterKeyedFunctionErrors {REG_KEYED_FUNCTION_SUCCESS, + REG_KEYED_FUNCTION_ALREADY_ASSIGNED, + REG_KEYED_FUNCTION_RANGE_ERROR}; + + +/*****************************************************/ + + +#endif |