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

        dst = rd_kafka_ConfigResource_new(src->restype, src->name);

        rd_list_destroy(&dst->config); /* created in .._new() */
        rd_list_init_copy(&dst->config, &src->config);
        rd_list_copy_to(&dst->config, &src->config,
                        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_ConfigResource_t *
rd_kafka_ConfigResource_copy (const rd_kafka_ConfigResource_t *src) {
        rd_kafka_ConfigResource_t *dst;
        dst = rd_kafka_ConfigResource_new(src->restype, src->name);
        rd_list_destroy(&dst->config); 
        rd_list_init_copy(&dst->config, &src->config);
        rd_list_copy_to(&dst->config, &src->config,
                        rd_kafka_ConfigEntry_list_copy, NULL);
        return dst;
}
static rd_kafka_ConfigResource_t * rd_kafka_ConfigResource_copy ( const rd_kafka_ConfigResource_t * src ) { rd_kafka_ConfigResource_t * dst ; dst = rd_kafka_ConfigResource_new ( src -> restype , src -> name ) ; rd_list_destroy ( & dst -> config ) ; rd_list_init_copy ( & dst -> config , & src -> config ) ; rd_list_copy_to ( & dst -> config , & src -> config , 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() */