title: Run c++ function from python
body: <p>I am trying to access GPIO of my IDS camera via python using pyueye. The original function is defined as: <code>INT is_IO(HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)</code>. This is an example of usage:</p>
  <pre><code>Example 2
  
  INT nRet = IS_SUCCESS;
  
   
  
  IO_GPIO_CONFIGURATION gpioConfiguration;
  
   
  
  // Set configuration of GPIO1 (OUTPUT LOW)
  
  gpioConfiguration.u32Gpio = IO_GPIO_1;
  
  gpioConfiguration.u32Configuration = IS_GPIO_OUTPUT;
  
  gpioConfiguration.u32State = 0;
  
   
  
  nRet = is_IO(hCam, IS_IO_CMD_GPIOS_SET_CONFIGURATION, (void*)&amp;gpioConfiguration,
  
              sizeof(gpioConfiguration));
  </code></pre>
  <p>I'm trying to do it in python as follows:</p>
  <pre><code>from pyueye import ueye
  from ctypes import pointer
  gpioConfiguration = ueye.IO_GPIO_CONFIGURATION 
  gpioConfiguration.u32Gpio = ueye.IO_GPIO_1
  gpioConfiguration.u32Configuration = ueye.IS_GPIO_OUTPUT
  gpioConfiguration.u32State = 1
  
  pt = pointer(gpioConfiguration)
  stat = ueye.is_IO(hCam, ueye.IS_IO_CMD_GPIOS_SET_CONFIGURATION,byref(gpioConfiguration),ueye.sizeof(gpioConfiguration))
  </code></pre>
  <p>But I get the error: TypeError: <em>type</em> must have storage info.
  Any ideas on what I need to change?</p>