plugins/out_kafka/librdkafka-1.5.0/src/rdkafka_admin.c
static rd_kafka_op_t *rd_kafka_admin_result_new (const rd_kafka_op_t *rko_req) {
        rd_kafka_op_t *rko_result;

        rko_result = rd_kafka_op_new(RD_KAFKA_OP_ADMIN_RESULT);
        rko_result->rko_rk = rko_req->rko_rk;

        rko_result->rko_u.admin_result.opaque =
                rd_kafka_confval_get_ptr(&rko_req->rko_u.admin_request.
                                         options.opaque);
        rko_result->rko_u.admin_result.reqtype = rko_req->rko_type;
        rko_result->rko_evtype = rko_req->rko_u.admin_request.reply_event_type;

        return rko_result;
}
/**
 * @brief Create a new admin_result op based on the request op \p rko_req
 */
@brief Create a new admin_result op based on the request op \p rko_req
@brief Create a new admin_result op based on the request op \ p rko_req
static rd_kafka_op_t *rd_kafka_admin_result_new (const rd_kafka_op_t *rko_req) {
        rd_kafka_op_t *rko_result;
        rko_result = rd_kafka_op_new(RD_KAFKA_OP_ADMIN_RESULT);
        rko_result->rko_rk = rko_req->rko_rk;
        rko_result->rko_u.admin_result.opaque =
                rd_kafka_confval_get_ptr(&rko_req->rko_u.admin_request.
                                         options.opaque);
        rko_result->rko_u.admin_result.reqtype = rko_req->rko_type;
        rko_result->rko_evtype = rko_req->rko_u.admin_request.reply_event_type;
        return rko_result;
}
static rd_kafka_op_t * rd_kafka_admin_result_new ( const rd_kafka_op_t * rko_req ) { rd_kafka_op_t * rko_result ; rko_result = rd_kafka_op_new ( RD_KAFKA_OP_ADMIN_RESULT ) ; rko_result -> rko_rk = rko_req -> rko_rk ; rko_result -> rko_u . admin_result . opaque = rd_kafka_confval_get_ptr ( & rko_req -> rko_u . admin_request . options . opaque ) ; rko_result -> rko_u . admin_result . reqtype = rko_req -> rko_type ; rko_result -> rko_evtype = rko_req -> rko_u . admin_request . reply_event_type ; return rko_result ; }
@brief Create a new admin_result op based on the request op \p rko_req
@brief Create a new admin_result op based on the request op \ p rko_req