summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ActiveThorns.h5
-rw-r--r--src/include/ParameterBindings.h21
-rw-r--r--src/include/cctk_ActiveThorns.h7
3 files changed, 32 insertions, 1 deletions
diff --git a/src/include/ActiveThorns.h b/src/include/ActiveThorns.h
index 69e54e66..eb1f2f60 100644
--- a/src/include/ActiveThorns.h
+++ b/src/include/ActiveThorns.h
@@ -21,6 +21,11 @@ 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);
+
#ifdef __cplusplus
}
diff --git a/src/include/ParameterBindings.h b/src/include/ParameterBindings.h
index 97612df2..1f5da613 100644
--- a/src/include/ParameterBindings.h
+++ b/src/include/ParameterBindings.h
@@ -10,9 +10,30 @@
#ifndef _PARAMETERBINDINGS_H_
#define _PARAMETERBINDINGS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int ParameterCreate(const char *name, /* The parameter name */
+ const char *thorn, /* The thorn */
+ const char *type, /* The parameter type */
+ const char *scope, /* The scoping block */
+ int steerable, /* Is it steerable ? */
+ const char *description, /* The description */
+ const char *defval, /* The default value */
+ void *datapointer, /* The actual data */
+ int n_ranges, /* How many allowed ranges it has */
+ ...);
+
+#ifdef __cplusplus
+}
+#endif
+
#define PARAMETER_KEYWORD 1
#define PARAMETER_STRING 2
#define PARAMETER_SENTENCE 3
+#define PARAMETER_INT 4
#define PARAMETER_INTEGER 4
#define PARAMETER_REAL 5
#define PARAMETER_LOGICAL 6
diff --git a/src/include/cctk_ActiveThorns.h b/src/include/cctk_ActiveThorns.h
index bfc6a6ba..eb1f2f60 100644
--- a/src/include/cctk_ActiveThorns.h
+++ b/src/include/cctk_ActiveThorns.h
@@ -1,5 +1,5 @@
/*@@
- @header cctk_ActiveThorns.h
+ @header ActiveThorns.h
@date Sun Jul 4 17:39:50 1999
@author Tom Goodale
@desc
@@ -21,6 +21,11 @@ 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);
+
#ifdef __cplusplus
}