aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2008-02-03 19:09:41 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2008-02-03 19:09:41 +0000
commit3aada37ae6324b1acda7c5a1c10bc16534c0c2a3 (patch)
tree0f76c32c25640d1bbee5e1c064fc0e96bacd484c /src
parent2878d1cbdcf4b2eb1f2f3b05a5d0991b7f9b6d17 (diff)
Provide aliased functions to query the source tree and configuration
ids git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@153 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src')
-rw-r--r--src/id.cc16
-rw-r--r--src/id.hh2
2 files changed, 16 insertions, 2 deletions
diff --git a/src/id.cc b/src/id.cc
index 238f8eb..215870a 100644
--- a/src/id.cc
+++ b/src/id.cc
@@ -45,7 +45,7 @@ namespace Formaline
// Configuration ID
extern "C" char const config_id[];
- // Unique source ID
+ // Unique source tree ID
extern "C" char const source_id[];
// Unique build ID
@@ -201,6 +201,20 @@ namespace Formaline
extern "C" CCTK_POINTER_TO_CONST
+ Formaline_UniqueConfigID (CCTK_POINTER_TO_CONST const cctkGH_)
+ {
+ cGH const * const cctkGH = static_cast<cGH const *> (cctkGH_);
+ return static_cast<CCTK_POINTER_TO_CONST> (get_config_id (cctkGH));
+ }
+
+ extern "C" CCTK_POINTER_TO_CONST
+ Formaline_UniqueSourceID (CCTK_POINTER_TO_CONST const cctkGH_)
+ {
+ cGH const * const cctkGH = static_cast<cGH const *> (cctkGH_);
+ return static_cast<CCTK_POINTER_TO_CONST> (get_source_id (cctkGH));
+ }
+
+ extern "C" CCTK_POINTER_TO_CONST
Formaline_UniqueBuildID (CCTK_POINTER_TO_CONST const cctkGH_)
{
cGH const * const cctkGH = static_cast<cGH const *> (cctkGH_);
diff --git a/src/id.hh b/src/id.hh
index 7cce95e..0cd5a6e 100644
--- a/src/id.hh
+++ b/src/id.hh
@@ -10,7 +10,7 @@ namespace Formaline
char const *
get_config_id (cGH const * const cctkGH);
- // Get the unique source id
+ // Get the unique source tree id
char const *
get_source_id (cGH const * const cctkGH);