/* A single target host/port that a network service is running on.  */
G_DEFINE_BOXED_TYPE(GSrvTarget, g_srv_target, g_srv_target_copy, g_srv_target_free)
/* A single target host/port that a network service is running on.  */
G_DEFINE_BOXED_TYPE(GSrvTarget, g_srv_target, g_srv_target_copy, g_srv_target_free)
{
  GSrvTarget *target = g_slice_new0 (GSrvTarget);
  target->hostname = g_strdup (hostname);
  target->port = port;
  target->priority = priority;
  target->weight = weight;
  return target;
}