/**
 * Frees the elements of a SocialGroup.
 *
 * @param _socialGroup The SocialGroup to free.
 */
static void freeLinkSocialGroupType(struct ifyouwannabecool_link_socialGroup *_socialGroup) {
  int i;
  if (_socialGroup->id != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor id of type ifyouwannabecool_link_socialGroup...\n");
#endif
    freeXsStringType(_socialGroup->id);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor id of type ifyouwannabecool_link_socialGroup...\n");
#endif
    free(_socialGroup->id);
  }
  if (_socialGroup->memberIds != NULL) {
    for (i = 0; i < _socialGroup->_sizeof_memberIds; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor memberIds[%i] of type ifyouwannabecool_link_socialGroup...\n", i);
#endif
      freeXsStringType(&(_socialGroup->memberIds[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor memberIds of type ifyouwannabecool_link_socialGroup...\n");
#endif
    free(_socialGroup->memberIds);
  }
  if (_socialGroup->groupLeaderId != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor groupLeaderId of type ifyouwannabecool_link_socialGroup...\n");
#endif
    freeXsStringType(_socialGroup->groupLeaderId);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor groupLeaderId of type ifyouwannabecool_link_socialGroup...\n");
#endif
    free(_socialGroup->groupLeaderId);
  }
}
/**
 * Frees the elements of a SubnetConfig.
 *
 * @param _subnetConfig The SubnetConfig to free.
 */
static void freeNs0SubnetConfigType(struct full_ns0_subnetConfig *_subnetConfig) {
  int i;
  if (_subnetConfig->subnet != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor subnet of type full_ns0_subnetConfig...\n");
#endif
    freeXsStringType(_subnetConfig->subnet);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor subnet of type full_ns0_subnetConfig...\n");
#endif
    free(_subnetConfig->subnet);
  }
  if (_subnetConfig->name != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor name of type full_ns0_subnetConfig...\n");
#endif
    freeXsStringType(_subnetConfig->name);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor name of type full_ns0_subnetConfig...\n");
#endif
    free(_subnetConfig->name);
  }
  if (_subnetConfig->nodeConnectors != NULL) {
    for (i = 0; i < _subnetConfig->_sizeof_nodeConnectors; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor nodeConnectors[%i] of type full_ns0_subnetConfig...\n", i);
#endif
      freeXsStringType(&(_subnetConfig->nodeConnectors[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor nodeConnectors of type full_ns0_subnetConfig...\n");
#endif
    free(_subnetConfig->nodeConnectors);
  }
}
Пример #3
0
/**
 * Frees the elements of a UserConfig.
 *
 * @param _userConfig The UserConfig to free.
 */
static void freeNs0UserConfigType(struct full_ns0_userConfig *_userConfig) {
  int i;
  if (_userConfig->user != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor user of type full_ns0_userConfig...\n");
#endif
    freeXsStringType(_userConfig->user);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor user of type full_ns0_userConfig...\n");
#endif
    free(_userConfig->user);
  }
  if (_userConfig->roles != NULL) {
    for (i = 0; i < _userConfig->_sizeof_roles; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor roles[%i] of type full_ns0_userConfig...\n", i);
#endif
      freeXsStringType(&(_userConfig->roles[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor roles of type full_ns0_userConfig...\n");
#endif
    free(_userConfig->roles);
  }
  if (_userConfig->password != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor password of type full_ns0_userConfig...\n");
#endif
    freeXsStringType(_userConfig->password);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor password of type full_ns0_userConfig...\n");
#endif
    free(_userConfig->password);
  }
}
/**
 * Frees the elements of a Persona.
 *
 * @param _persona The Persona to free.
 */
static void freePersonaPersonaType(struct ifyouwannabecool_persona_persona *_persona) {
  int i;
  if (_persona->id != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor id of type ifyouwannabecool_persona_persona...\n");
#endif
    freeXsStringType(_persona->id);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor id of type ifyouwannabecool_persona_persona...\n");
#endif
    free(_persona->id);
  }
  if (_persona->email != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor email of type ifyouwannabecool_persona_persona...\n");
#endif
    freeXsStringType(_persona->email);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor email of type ifyouwannabecool_persona_persona...\n");
#endif
    free(_persona->email);
  }
  if (_persona->alias != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor alias of type ifyouwannabecool_persona_persona...\n");
#endif
    freeXsStringType(_persona->alias);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor alias of type ifyouwannabecool_persona_persona...\n");
#endif
    free(_persona->alias);
  }
  if (_persona->name != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor name of type ifyouwannabecool_persona_persona...\n");
#endif
    freePersonaNameType(_persona->name);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor name of type ifyouwannabecool_persona_persona...\n");
#endif
    free(_persona->name);
  }
  if (_persona->picture != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor picture of type ifyouwannabecool_persona_persona...\n");
#endif
    free(_persona->picture);
  }
}
/**
 * Frees the elements of a Name.
 *
 * @param _name The Name to free.
 */
static void freePersonaNameType(struct ifyouwannabecool_persona_name *_name) {
  int i;
  if (_name->givenName != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor givenName of type ifyouwannabecool_persona_name...\n");
#endif
    freeXsStringType(_name->givenName);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor givenName of type ifyouwannabecool_persona_name...\n");
#endif
    free(_name->givenName);
  }
  if (_name->surname != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor surname of type ifyouwannabecool_persona_name...\n");
#endif
    freeXsStringType(_name->surname);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor surname of type ifyouwannabecool_persona_name...\n");
#endif
    free(_name->surname);
  }
}
Пример #6
0
/**
 * Frees the elements of a Node.
 *
 * @param _node The Node to free.
 */
static void freeNs0NodeType(struct full_ns0_node *_node) {
  int i;
  if (_node->nodeIDString != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor nodeIDString of type full_ns0_node...\n");
#endif
    freeXsStringType(_node->nodeIDString);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor nodeIDString of type full_ns0_node...\n");
#endif
    free(_node->nodeIDString);
  }
  if (_node->type != NULL) {
#if DEBUG_ENUNCIATE > 1
    printf("Freeing type of accessor type of type full_ns0_node...\n");
#endif
    freeXsStringType(_node->type);
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor type of type full_ns0_node...\n");
#endif
    free(_node->type);
  }
}
Пример #7
0
/**
 * Frees the elements of a NetworkCapabilities.
 *
 * @param _networkCapabilities The NetworkCapabilities to free.
 */
static void freeNs0NetworkCapabilitiesType(struct full_ns0_networkCapabilities *_networkCapabilities) {
  int i;
  if (_networkCapabilities->node != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_node; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor node[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->node[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor node of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->node);
  }
  if (_networkCapabilities->latency != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_latency; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor latency[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->latency[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor latency of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->latency);
  }
  if (_networkCapabilities->macAddressList != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_macAddressList; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor macAddressList[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->macAddressList[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor macAddressList of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->macAddressList);
  }
  if (_networkCapabilities->bandwidth != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_bandwidth; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor bandwidth[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->bandwidth[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor bandwidth of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->bandwidth);
  }
  if (_networkCapabilities->link != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_link; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor link[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->link[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor link of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->link);
  }
  if (_networkCapabilities->controller != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_controller; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor controller[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->controller[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor controller of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->controller);
  }
  if (_networkCapabilities->host != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_host; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor host[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->host[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor host of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->host);
  }
  if (_networkCapabilities->ipAddressList != NULL) {
    for (i = 0; i < _networkCapabilities->_sizeof_ipAddressList; i++) {
#if DEBUG_ENUNCIATE > 1
      printf("Freeing accessor ipAddressList[%i] of type full_ns0_networkCapabilities...\n", i);
#endif
      freeXsStringType(&(_networkCapabilities->ipAddressList[i]));
    }
#if DEBUG_ENUNCIATE > 1
    printf("Freeing accessor ipAddressList of type full_ns0_networkCapabilities...\n");
#endif
    free(_networkCapabilities->ipAddressList);
  }
}