@brief Creates a new topic handle for topic named \p topic.
\p conf is an optional configuration for the topic created with
rd_kafka_topic_conf_new() that will be used instead of the default
topic configuration.
The \p conf object is freed by this function and must not be used or
destroyed by the application sub-sequently.
See rd_kafka_topic_conf_set() et.al for more information.
Topic handles are refcounted internally and calling rd_kafka_topic_new()
again with the same topic name will return the previous topic handle
without updating the original handle's configuration.
Applications must eventually call rd_kafka_topic_destroy() for each
succesfull call to rd_kafka_topic_new() to clear up resources.
@returns the new topic handle or NULL on error (use rd_kafka_errno2err()
to convert system \p errno to an rd_kafka_resp_err_t error code.
@brief Creates a new topic handle for topic named \p topic.
\p conf is an optional configuration for the topic created with rd_kafka_topic_conf_new() that will be used instead of the default topic configuration. The \p conf object is freed by this function and must not be used or destroyed by the application sub-sequently. See rd_kafka_topic_conf_set() et.al for more information.
Topic handles are refcounted internally and calling rd_kafka_topic_new() again with the same topic name will return the previous topic handle without updating the original handle's configuration. Applications must eventually call rd_kafka_topic_destroy() for each succesfull call to rd_kafka_topic_new() to clear up resources.
@returns the new topic handle or NULL on error (use rd_kafka_errno2err() to convert system \p errno to an rd_kafka_resp_err_t error code.
@sa rd_kafka_topic_destroy()