Modifying libRS internal communication to handle network rendering.

Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
diff --git a/spec.l b/spec.l
index 6a9010f..c8af891 100644
--- a/spec.l
+++ b/spec.l
@@ -20,6 +20,19 @@
 
    int typeNextState;
 
+   void checkPointerType() {
+       VarType *lastType = currType;
+       if (lastType->ptrLevel) {
+           currType = &apis[apiCount].params[apis[apiCount].paramCount];
+           currType->type = 4;
+           sprintf(currType->typeName, "%s", "size_t");
+           if (lastType->name[0]) {
+               sprintf(currType->name, "%s_length", lastType->name);
+           }
+           apis[apiCount].paramCount++;
+       }
+   }
+
    extern "C" int yylex();
 
 %%
@@ -145,6 +158,7 @@
 
 <api_entry_param>{ID} {
     memcpy(currType->name, yytext, yyleng);
+    checkPointerType();
     BEGIN(api_entry2);
     }