def GetCFields(struct):
  """Get all fields in struct, skipping padding."""
  # Clang2py artificially adds padding fields to align data to 4 byte
  # boundaries. These paddings start with 'PADDING_' and we need to
  # remove these fake fields.
  return [(n, t) for n, t in struct._fields_  # pylint: disable=protected-access
          if not n.startswith('PADDING_')]