summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-11-14 16:03:08 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-11-14 16:03:08 (GMT)
commit1d74cb3e355db759ef7c97e933f2e88dcb692f9f (patch)
tree428a8ac71d79045366302c96c727626b392381c0 /Source
parent2281726935b1a0821bb14dcc96ed99ac9c415845 (diff)
downloadCMake-1d74cb3e355db759ef7c97e933f2e88dcb692f9f.zip
CMake-1d74cb3e355db759ef7c97e933f2e88dcb692f9f.tar.gz
CMake-1d74cb3e355db759ef7c97e933f2e88dcb692f9f.tar.bz2
added another func
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCPluginAPI.cxx7
-rw-r--r--Source/cmCPluginAPI.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 79ff4b9..e7ffe3f 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -386,6 +386,12 @@ const char *cmSourceFileGetSourceName(void *arg)
return sf->GetSourceName().c_str();
}
+const char *cmSourceFileGetFullPath(void *arg)
+{
+ cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
+ return sf->GetFullPath().c_str();
+}
+
const char *cmSourceFileGetProperty(void *arg,const char *prop)
{
cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
@@ -508,6 +514,7 @@ cmCAPI cmStaticCAPI =
cmSourceFileGetProperty,
cmSourceFileGetPropertyAsBool,
cmSourceFileGetSourceName,
+ cmSourceFileGetFullPath,
cmSourceFileSetName,
cmSourceFileSetName2,
cmSourceFileSetProperty,
diff --git a/Source/cmCPluginAPI.h b/Source/cmCPluginAPI.h
index 6e45d0f..1f679d7 100644
--- a/Source/cmCPluginAPI.h
+++ b/Source/cmCPluginAPI.h
@@ -118,6 +118,7 @@ typedef struct
const char *(*SourceFileGetProperty) (void *sf, const char *prop);
int (*SourceFileGetPropertyAsBool) (void *sf, const char *prop);
const char *(*SourceFileGetSourceName) (void *sf);
+ const char *(*SourceFileGetFullPath) (void *sf);
void (*SourceFileSetName) (void *sf, const char* name, const char* dir,
int numSourceExtensions,
const char **sourceExtensions,