plugins/out_kafka/librdkafka-1.5.0/src/rdkafka_admin.c
static rd_kafka_ConfigEntry_t *
rd_kafka_ConfigEntry_copy (const rd_kafka_ConfigEntry_t *src) {
        rd_kafka_ConfigEntry_t *dst;

        dst = rd_kafka_ConfigEntry_new(src->kv->name, src->kv->value);
        dst->a = src->a;

        rd_list_destroy(&dst->synonyms); /* created in .._new() */
        rd_list_init_copy(&dst->synonyms, &src->synonyms);
        rd_list_copy_to(&dst->synonyms, &src->synonyms,
                        rd_kafka_ConfigEntry_list_copy, NULL);

        return dst;
}
/**
 * @brief Allocate a new AlterConfigs and make a copy of \p src
 */
@brief Allocate a new AlterConfigs and make a copy of \p src
@brief Allocate a new AlterConfigs and make a copy of \ p src
static rd_kafka_ConfigEntry_t *
rd_kafka_ConfigEntry_copy (const rd_kafka_ConfigEntry_t *src) {
        rd_kafka_ConfigEntry_t *dst;
        dst = rd_kafka_ConfigEntry_new(src->kv->name, src->kv->value);
        dst->a = src->a;
        rd_list_destroy(&dst->synonyms); 
        rd_list_init_copy(&dst->synonyms, &src->synonyms);
        rd_list_copy_to(&dst->synonyms, &src->synonyms,
                        rd_kafka_ConfigEntry_list_copy, NULL);
        return dst;
}
static rd_kafka_ConfigEntry_t * rd_kafka_ConfigEntry_copy ( const rd_kafka_ConfigEntry_t * src ) { rd_kafka_ConfigEntry_t * dst ; dst = rd_kafka_ConfigEntry_new ( src -> kv -> name , src -> kv -> value ) ; dst -> a = src -> a ; rd_list_destroy ( & dst -> synonyms ) ; rd_list_init_copy ( & dst -> synonyms , & src -> synonyms ) ; rd_list_copy_to ( & dst -> synonyms , & src -> synonyms , rd_kafka_ConfigEntry_list_copy , NULL ) ; return dst ; }
@brief Allocate a new AlterConfigs and make a copy of \p src
@brief Allocate a new AlterConfigs and make a copy of \ p src
/* created in .._new() */