plugins/out_kafka/librdkafka-1.5.0/src/rdkafka_admin.c
static rd_kafka_resp_err_t
rd_kafka_admin_add_config0 (rd_list_t *rl,
                            const char *name, const char *value,
                            rd_kafka_AlterOperation_t operation) {
        rd_kafka_ConfigEntry_t *entry;

        if (!name)
                return RD_KAFKA_RESP_ERR__INVALID_ARG;

        entry = rd_calloc(1, sizeof(*entry));
        entry->kv = rd_strtup_new(name, value);
        entry->a.operation = operation;

        rd_list_add(rl, entry);

        return RD_KAFKA_RESP_ERR_NO_ERROR;
}
/**
 * @brief Generic constructor of ConfigEntry which is also added to \p rl
 */
@brief Generic constructor of ConfigEntry which is also added to \p rl
@brief Generic constructor of ConfigEntry which is also added to \ p rl
static rd_kafka_resp_err_t
rd_kafka_admin_add_config0 (rd_list_t *rl,
                            const char *name, const char *value,
                            rd_kafka_AlterOperation_t operation) {
        rd_kafka_ConfigEntry_t *entry;
        if (!name)
                return RD_KAFKA_RESP_ERR__INVALID_ARG;
        entry = rd_calloc(1, sizeof(*entry));
        entry->kv = rd_strtup_new(name, value);
        entry->a.operation = operation;
        rd_list_add(rl, entry);
        return RD_KAFKA_RESP_ERR_NO_ERROR;
}
static rd_kafka_resp_err_t rd_kafka_admin_add_config0 ( rd_list_t * rl , const char * name , const char * value , rd_kafka_AlterOperation_t operation ) { rd_kafka_ConfigEntry_t * entry ; if ( ! name ) return RD_KAFKA_RESP_ERR__INVALID_ARG ; entry = rd_calloc ( 1 , sizeof ( * entry ) ) ; entry -> kv = rd_strtup_new ( name , value ) ; entry -> a . operation = operation ; rd_list_add ( rl , entry ) ; return RD_KAFKA_RESP_ERR_NO_ERROR ; }
@brief Generic constructor of ConfigEntry which is also added to \p rl
@brief Generic constructor of ConfigEntry which is also added to \ p rl