Add accessor for client to CFCGoClass.

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/dac05351
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/dac05351
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/dac05351

Branch: refs/heads/master
Commit: dac053518643fde074a30076a7ae7ca5e501b299
Parents: 6e27121
Author: Marvin Humphrey <[email protected]>
Authored: Sun Mar 29 21:21:45 2015 -0700
Committer: Marvin Humphrey <[email protected]>
Committed: Wed May 6 14:25:27 2015 -0700

----------------------------------------------------------------------
 compiler/src/CFCGoClass.c | 5 +++++
 compiler/src/CFCGoClass.h | 3 +++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/dac05351/compiler/src/CFCGoClass.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCGoClass.c b/compiler/src/CFCGoClass.c
index 9884707..e504c87 100644
--- a/compiler/src/CFCGoClass.c
+++ b/compiler/src/CFCGoClass.c
@@ -122,6 +122,11 @@ CFCGoClass_singleton(const char *class_name) {
     return NULL;
 }
 
+CFCClass*
+CFCGoClass_get_client(CFCGoClass *self) {
+    return self->client;
+}
+
 CFCGoClass**
 CFCGoClass_registry() {
     if (!registry) {

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/dac05351/compiler/src/CFCGoClass.h
----------------------------------------------------------------------
diff --git a/compiler/src/CFCGoClass.h b/compiler/src/CFCGoClass.h
index 6693091..dec2e44 100644
--- a/compiler/src/CFCGoClass.h
+++ b/compiler/src/CFCGoClass.h
@@ -57,6 +57,9 @@ CFCGoClass_registry();
 void
 CFCGoClass_clear_registry(void);
 
+struct CFCClass*
+CFCGoClass_get_client(CFCGoClass *self);
+
 /** Return any Go type statements describing the Clownfish class.
  */
 char*

Reply via email to