You would define the start of your function like this
Code:
void paFunc(const float* in, float* out, long frames, void* data){    
  auto start = high_resolution_clock::now();    
  paConfig *config = reinterpret_cast<paConfig*>(data);
  // now use config->channels
  int num_channel = 2;
  // now use config->margin
  int margin = 6;
Your call in main would be
Code:
Pa a(paFunc, channels, 1, sample_rate, frames, &config);