@@ -120,7 +120,7 @@ static int has_group_id(rd_kafka_conf_t *conf) { /* {{{ */
120120} /* }}} */
121121
122122/* {{{ proto SimpleKafkaClient\Consumer::__construct(SimpleKafkaClient\Configuration $conf) */
123- ZEND_METHOD (Kafka_Consumer , __construct )
123+ ZEND_METHOD (SimpleKafkaClient_Consumer , __construct )
124124{
125125 zval * zconf ;
126126 char errstr [512 ];
@@ -170,7 +170,7 @@ ZEND_METHOD(Kafka_Consumer, __construct)
170170
171171/* {{{ proto void SimpleKafkaClient\Consumer::assign([array $topics])
172172 Atomic assignment of partitions to consume */
173- ZEND_METHOD (Kafka_Consumer , assign )
173+ ZEND_METHOD (SimpleKafkaClient_Consumer , assign )
174174{
175175 HashTable * htopars = NULL ;
176176 rd_kafka_topic_partition_list_t * topics ;
@@ -215,7 +215,7 @@ ZEND_METHOD(Kafka_Consumer, assign)
215215
216216/* {{{ proto array SimpleKafkaClient\Consumer::getAssignment()
217217 Returns the current partition getAssignment */
218- ZEND_METHOD (Kafka_Consumer , getAssignment )
218+ ZEND_METHOD (SimpleKafkaClient_Consumer , getAssignment )
219219{
220220 rd_kafka_resp_err_t err ;
221221 rd_kafka_topic_partition_list_t * topics ;
@@ -243,7 +243,7 @@ ZEND_METHOD(Kafka_Consumer, getAssignment)
243243
244244/* {{{ proto void SimpleKafkaClient\Consumer::subscribe(array $topics)
245245 Update the subscription set to $topics */
246- ZEND_METHOD (Kafka_Consumer , subscribe )
246+ ZEND_METHOD (SimpleKafkaClient_Consumer , subscribe )
247247{
248248 HashTable * htopics ;
249249 HashPosition pos ;
@@ -283,7 +283,7 @@ ZEND_METHOD(Kafka_Consumer, subscribe)
283283
284284/* {{{ proto array SimpleKafkaClient\Consumer::getSubscription()
285285 Returns the current subscription as set by subscribe() */
286- ZEND_METHOD (Kafka_Consumer , getSubscription )
286+ ZEND_METHOD (SimpleKafkaClient_Consumer , getSubscription )
287287{
288288 rd_kafka_resp_err_t err ;
289289 rd_kafka_topic_partition_list_t * topics ;
@@ -317,7 +317,7 @@ ZEND_METHOD(Kafka_Consumer, getSubscription)
317317
318318/* {{{ proto void SimpleKafkaClient\Consumer::unsubsribe()
319319 Unsubscribe from the current subscription set */
320- ZEND_METHOD (Kafka_Consumer , unsubscribe )
320+ ZEND_METHOD (SimpleKafkaClient_Consumer , unsubscribe )
321321{
322322 object_intern * intern ;
323323 rd_kafka_resp_err_t err ;
@@ -341,7 +341,7 @@ ZEND_METHOD(Kafka_Consumer, unsubscribe)
341341
342342/* {{{ proto Message SimpleKafkaClient\Consumer::consume()
343343 Consume message or get error event, triggers callbacks */
344- ZEND_METHOD (Kafka_Consumer , consume )
344+ ZEND_METHOD (SimpleKafkaClient_Consumer , consume )
345345{
346346 object_intern * intern ;
347347 zend_long timeout_ms ;
@@ -458,23 +458,23 @@ static void consumer_commit(int async, INTERNAL_FUNCTION_PARAMETERS) /* {{{ */
458458
459459/* {{{ proto void SimpleKafkaClient\Consumer::commit([mixed $message_or_offsets])
460460 Commit offsets */
461- ZEND_METHOD (Kafka_Consumer , commit )
461+ ZEND_METHOD (SimpleKafkaClient_Consumer , commit )
462462{
463463 consumer_commit (0 , INTERNAL_FUNCTION_PARAM_PASSTHRU );
464464}
465465/* }}} */
466466
467467/* {{{ proto void SimpleKafkaClient\Consumer::commitAsync([mixed $message_or_offsets])
468468 Commit offsets */
469- ZEND_METHOD (Kafka_Consumer , commitAsync )
469+ ZEND_METHOD (SimpleKafkaClient_Consumer , commitAsync )
470470{
471471 consumer_commit (1 , INTERNAL_FUNCTION_PARAM_PASSTHRU );
472472}
473473/* }}} */
474474
475475/* {{{ proto void SimpleKafkaClient\Consumer::close()
476476 Close connection */
477- ZEND_METHOD (Kafka_Consumer , close )
477+ ZEND_METHOD (SimpleKafkaClient_Consumer , close )
478478{
479479 object_intern * intern ;
480480
@@ -493,7 +493,7 @@ ZEND_METHOD(Kafka_Consumer, close)
493493
494494/* {{{ proto Metadata SimpleKafkaClient\Consumer::getMetadata(bool all_topics, int timeout_ms, SimpleKafkaClient\Topic only_topic = null)
495495 Request Metadata from broker */
496- ZEND_METHOD (Kafka_Consumer , getMetadata )
496+ ZEND_METHOD (SimpleKafkaClient_Consumer , getMetadata )
497497{
498498 zend_bool all_topics ;
499499 zval * only_zrkt = NULL ;
@@ -535,7 +535,7 @@ ZEND_METHOD(Kafka_Consumer, getMetadata)
535535
536536/* {{{ proto SimpleKafkaClient\ConsumerTopic SimpleKafkaClient\Consumer::getTopicHandle(string $topic)
537537 Returns a SimpleKafkaClient\ConsumerTopic object */
538- ZEND_METHOD (Kafka_Consumer , getTopicHandle )
538+ ZEND_METHOD (SimpleKafkaClient_Consumer , getTopicHandle )
539539{
540540 char * topic ;
541541 size_t topic_len ;
@@ -573,7 +573,7 @@ ZEND_METHOD(Kafka_Consumer, getTopicHandle)
573573
574574/* {{{ proto array SimpleKafkaClient\Consumer::getCommittedOffsets(array $topics, int timeout_ms)
575575 Retrieve committed offsets for topics+partitions */
576- ZEND_METHOD (Kafka_Consumer , getCommittedOffsets )
576+ ZEND_METHOD (SimpleKafkaClient_Consumer , getCommittedOffsets )
577577{
578578 HashTable * htopars = NULL ;
579579 zend_long timeout_ms ;
@@ -612,7 +612,7 @@ ZEND_METHOD(Kafka_Consumer, getCommittedOffsets)
612612
613613/* {{{ proto array SimpleKafkaClient\Consumer::getOffsetPositions(array $topics)
614614 Retrieve current offsets for topics+partitions */
615- ZEND_METHOD (Kafka_Consumer , getOffsetPositions )
615+ ZEND_METHOD (SimpleKafkaClient_Consumer , getOffsetPositions )
616616{
617617 HashTable * htopars = NULL ;
618618 object_intern * intern ;
@@ -647,7 +647,7 @@ ZEND_METHOD(Kafka_Consumer, getOffsetPositions)
647647
648648/* {{{ proto void SimpleKafkaClient\Consumer::offsetsForTimes(array $topicPartitions, int $timeout_ms)
649649 Look up the offsets for the given partitions by timestamp. */
650- ZEND_METHOD (Kafka_Consumer , offsetsForTimes )
650+ ZEND_METHOD (SimpleKafkaClient_Consumer , offsetsForTimes )
651651{
652652 HashTable * htopars = NULL ;
653653 object_intern * intern ;
@@ -684,7 +684,7 @@ ZEND_METHOD(Kafka_Consumer, offsetsForTimes)
684684
685685/* {{{ proto void SimpleKafkaClient\Consumer::queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms)
686686 Query broker for low (oldest/beginning) or high (newest/end) offsets for partition */
687- ZEND_METHOD (Kafka_Consumer , queryWatermarkOffsets )
687+ ZEND_METHOD (SimpleKafkaClient_Consumer , queryWatermarkOffsets )
688688{
689689 object_intern * intern ;
690690 char * topic ;
@@ -726,7 +726,7 @@ void kafka_consumer_init(INIT_FUNC_ARGS) /* {{{ */
726726{
727727 zend_class_entry tmpce ;
728728
729- INIT_NS_CLASS_ENTRY (tmpce , "SimpleKafkaClient" , "Consumer" , class_Kafka_Consumer_methods );
729+ INIT_NS_CLASS_ENTRY (tmpce , "SimpleKafkaClient" , "Consumer" , class_SimpleKafkaClient_Consumer_methods );
730730 ce = zend_register_internal_class (& tmpce );
731731 ce -> create_object = kafka_consumer_new ;
732732
0 commit comments