Rewrite the internal code of get functions.

getExportVars -> getExportVarCount , getExportVarList
getExportFuncs -> getExportFuncCount , getExportFuncList
getPragmas -> getPragmaCount , getPragmaList
getFunctions -> getFuncCount, getFuncNameList
getFunctionBinary -> getFuncBinary
diff --git a/lib/bcc/ScriptCached.h b/lib/bcc/ScriptCached.h
index 8950a11..49495dd 100644
--- a/lib/bcc/ScriptCached.h
+++ b/lib/bcc/ScriptCached.h
@@ -73,25 +73,38 @@
 
     void *lookup(const char *name);
 
-    void getExportVars(BCCsizei *actualVarCount,
-                       BCCsizei maxVarCount,
-                       BCCvoid **vars);
 
-    void getExportFuncs(BCCsizei *actualFuncCount,
-                        BCCsizei maxFuncCount,
-                        BCCvoid **funcs);
+    size_t getExportVarCount() const {
+      return mpExportVars->count;
+    }
 
-    void getPragmas(BCCsizei *actualStringCount,
-                    BCCsizei maxStringCount,
-                    BCCchar **strings);
+    size_t getExportFuncCount() const {
+      return mpExportFuncs->count;
+    }
 
-    void getFunctions(BCCsizei *actualFunctionCount,
-                      BCCsizei maxFunctionCount,
-                      BCCchar **functions);
+    size_t getPragmaCount() const {
+      return mPragmas.size();
+    }
 
-    void getFunctionBinary(BCCchar *function,
-                           BCCvoid **base,
-                           BCCsizei *length);
+    size_t getFuncCount() const {
+      return mFunctions.size();
+    }
+
+
+    void getExportVarList(size_t varListSize, void **varList);
+
+    void getExportFuncList(size_t funcListSize, void **funcList);
+
+    void getPragmaList(size_t pragmaListSize,
+                       char const **keyList,
+                       char const **valueList);
+
+    void getFuncNameList(size_t funcNameListSize, char const **funcNameList);
+
+    void getFuncBinary(char const *function,
+                       void **base,
+                       size_t *length);
+
 
     char *getContext() {
       return mContext;