summaryrefslogtreecommitdiff
path: root/src/include/cctk_ActiveThorns.h
blob: 128efbe705fbb14213f26ae9c939c4687f224d3b (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
41
 /*@@
   @header    ActiveThorns.h
   @date      Sun Jul  4 17:39:50 1999
   @author    Tom Goodale
   @desc 
   
   @enddesc
   @version $Header$
 @@*/

#ifndef __ACTIVETHORNS_H_
#define __ACTIVETHORNS_H_

#include <stdio.h>
#include "SKBinTree.h"   

#ifdef __cplusplus 
extern "C" {
#endif

int CCTKi_RegisterThorn(const char *name, const char *imp);
int CCTKi_ActivateThorn(const char *name);
int CCTK_IsThornActive(const char *name);
int CCTK_IsImplementationActive(const char *name);
int CCTKi_ListThorns(FILE *file, const char *format, int active);
int CCTKi_ListImplementations(FILE *file, const char *format, int active);
const char *CCTK_ActivatingThorn(const char *imp);

/* FIXME - should return a list or something */
t_sktree *CCTK_ImpThornList (const char *imp);

/* public routines to get information about thorns and imps */
int CCTK_ImpList   (int active,      char ***list, int *n_implementations);
int CCTK_ThornList (const char* imp, char ***list, int *n_thorns);


#ifdef __cplusplus 
}
#endif

#endif /* _ACTIVETHORNS_H_ */