summaryrefslogtreecommitdiff
path: root/src/include/cctk_GHExtensions.h
blob: 1d229c8d71d22774aa729e87adb8d65f69e947e9 (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
32
33
34
35
36
37
38
39
40
 /*@@
   @header    cctk_GHExtensions.h
   @date      Fri Jan 15 14:15:20 1999
   @author    Tom Goodale
   @desc 
   Prototypes for functions dealing with GH extensions.
   @enddesc
   @version $Header$
 @@*/

#ifndef _CCTK_GHEXTENSIONS_H_
#define _CCTK_GHEXTENSIONS_H_

#ifdef __cplusplus
extern "C" 
{
#endif

int CCTK_RegisterGHExtension(const char *name);
int CCTK_UnregisterGHExtension(const char *name);

int CCTK_RegisterGHExtensionSetupGH(int handle, 
                                    void *(*func)(tFleshConfig *, int, cGH *));

int CCTK_RegisterGHExtensionInitGH(int handle, 
                                   int (*func)(cGH *));

int CCTK_RegisterGHExtensionScheduleTraverseGH(int handle, 
                                               int (*func)(cGH *, const char *));

int CCTK_GHExtensionHandle(const char *name);

void *CCTK_GHExtension(const cGH *GH, const char *name);

#ifdef __cplusplus
}
#endif

#endif /* _CCTK_GHEXTENSIONS_H_ */