title: Renaming C struct properties using SWIG %apply
body: <p>I have the below structure in my SWIG interface file and thusly my sample.h header file.  I'm assuming the sockaddr, ios_boolean and unsigned char definitions from this structure are the reason why I get the below generated classes.  If I know the type on that ios_boolean and unsigned char map to on the Java side is there a way to use an %apply to get rid of the generated pointer classes?  I tried %apply int {ios_boolean}; but then I get a SWIGTYPE_p_boolean.java.  Any ideas?</p>
  
  <pre><code>%rename (Sample) sample_details_t_;
  typedef struct sample_details_t_ {               
      ios_boolean                   is_allowed;           
      unsigned char                 mac[11];        
   } sample_t;
  
  
   generates:
   SWIGTYPE_p_unsigned_char.java
   SWIGTYPE_p_ios_boolean.java
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code> [exec] ewapi_wrap.c:982: error: `true' undeclared (first use in this function)
   [exec] ewapi_wrap.c:982: error: (Each undeclared identifier is reported only once
   [exec] ewapi_wrap.c:982: error: for each function it appears in.)
   [exec] ewapi_wrap.c:982: error: `false' undeclared (first use in this function
  </code></pre>