@@ -120,7 +120,7 @@ static int has_group_id(rd_kafka_conf_t *conf) { /* {{{ */
120
120
} /* }}} */
121
121
122
122
/* {{{ proto SimpleKafkaClient\Consumer::__construct(SimpleKafkaClient\Configuration $conf) */
123
- ZEND_METHOD (Kafka_Consumer , __construct )
123
+ ZEND_METHOD (SimpleKafkaClient_Consumer , __construct )
124
124
{
125
125
zval * zconf ;
126
126
char errstr [512 ];
@@ -170,7 +170,7 @@ ZEND_METHOD(Kafka_Consumer, __construct)
170
170
171
171
/* {{{ proto void SimpleKafkaClient\Consumer::assign([array $topics])
172
172
Atomic assignment of partitions to consume */
173
- ZEND_METHOD (Kafka_Consumer , assign )
173
+ ZEND_METHOD (SimpleKafkaClient_Consumer , assign )
174
174
{
175
175
HashTable * htopars = NULL ;
176
176
rd_kafka_topic_partition_list_t * topics ;
@@ -215,7 +215,7 @@ ZEND_METHOD(Kafka_Consumer, assign)
215
215
216
216
/* {{{ proto array SimpleKafkaClient\Consumer::getAssignment()
217
217
Returns the current partition getAssignment */
218
- ZEND_METHOD (Kafka_Consumer , getAssignment )
218
+ ZEND_METHOD (SimpleKafkaClient_Consumer , getAssignment )
219
219
{
220
220
rd_kafka_resp_err_t err ;
221
221
rd_kafka_topic_partition_list_t * topics ;
@@ -243,7 +243,7 @@ ZEND_METHOD(Kafka_Consumer, getAssignment)
243
243
244
244
/* {{{ proto void SimpleKafkaClient\Consumer::subscribe(array $topics)
245
245
Update the subscription set to $topics */
246
- ZEND_METHOD (Kafka_Consumer , subscribe )
246
+ ZEND_METHOD (SimpleKafkaClient_Consumer , subscribe )
247
247
{
248
248
HashTable * htopics ;
249
249
HashPosition pos ;
@@ -283,7 +283,7 @@ ZEND_METHOD(Kafka_Consumer, subscribe)
283
283
284
284
/* {{{ proto array SimpleKafkaClient\Consumer::getSubscription()
285
285
Returns the current subscription as set by subscribe() */
286
- ZEND_METHOD (Kafka_Consumer , getSubscription )
286
+ ZEND_METHOD (SimpleKafkaClient_Consumer , getSubscription )
287
287
{
288
288
rd_kafka_resp_err_t err ;
289
289
rd_kafka_topic_partition_list_t * topics ;
@@ -317,7 +317,7 @@ ZEND_METHOD(Kafka_Consumer, getSubscription)
317
317
318
318
/* {{{ proto void SimpleKafkaClient\Consumer::unsubsribe()
319
319
Unsubscribe from the current subscription set */
320
- ZEND_METHOD (Kafka_Consumer , unsubscribe )
320
+ ZEND_METHOD (SimpleKafkaClient_Consumer , unsubscribe )
321
321
{
322
322
object_intern * intern ;
323
323
rd_kafka_resp_err_t err ;
@@ -341,7 +341,7 @@ ZEND_METHOD(Kafka_Consumer, unsubscribe)
341
341
342
342
/* {{{ proto Message SimpleKafkaClient\Consumer::consume()
343
343
Consume message or get error event, triggers callbacks */
344
- ZEND_METHOD (Kafka_Consumer , consume )
344
+ ZEND_METHOD (SimpleKafkaClient_Consumer , consume )
345
345
{
346
346
object_intern * intern ;
347
347
zend_long timeout_ms ;
@@ -458,23 +458,23 @@ static void consumer_commit(int async, INTERNAL_FUNCTION_PARAMETERS) /* {{{ */
458
458
459
459
/* {{{ proto void SimpleKafkaClient\Consumer::commit([mixed $message_or_offsets])
460
460
Commit offsets */
461
- ZEND_METHOD (Kafka_Consumer , commit )
461
+ ZEND_METHOD (SimpleKafkaClient_Consumer , commit )
462
462
{
463
463
consumer_commit (0 , INTERNAL_FUNCTION_PARAM_PASSTHRU );
464
464
}
465
465
/* }}} */
466
466
467
467
/* {{{ proto void SimpleKafkaClient\Consumer::commitAsync([mixed $message_or_offsets])
468
468
Commit offsets */
469
- ZEND_METHOD (Kafka_Consumer , commitAsync )
469
+ ZEND_METHOD (SimpleKafkaClient_Consumer , commitAsync )
470
470
{
471
471
consumer_commit (1 , INTERNAL_FUNCTION_PARAM_PASSTHRU );
472
472
}
473
473
/* }}} */
474
474
475
475
/* {{{ proto void SimpleKafkaClient\Consumer::close()
476
476
Close connection */
477
- ZEND_METHOD (Kafka_Consumer , close )
477
+ ZEND_METHOD (SimpleKafkaClient_Consumer , close )
478
478
{
479
479
object_intern * intern ;
480
480
@@ -493,7 +493,7 @@ ZEND_METHOD(Kafka_Consumer, close)
493
493
494
494
/* {{{ proto Metadata SimpleKafkaClient\Consumer::getMetadata(bool all_topics, int timeout_ms, SimpleKafkaClient\Topic only_topic = null)
495
495
Request Metadata from broker */
496
- ZEND_METHOD (Kafka_Consumer , getMetadata )
496
+ ZEND_METHOD (SimpleKafkaClient_Consumer , getMetadata )
497
497
{
498
498
zend_bool all_topics ;
499
499
zval * only_zrkt = NULL ;
@@ -535,7 +535,7 @@ ZEND_METHOD(Kafka_Consumer, getMetadata)
535
535
536
536
/* {{{ proto SimpleKafkaClient\ConsumerTopic SimpleKafkaClient\Consumer::getTopicHandle(string $topic)
537
537
Returns a SimpleKafkaClient\ConsumerTopic object */
538
- ZEND_METHOD (Kafka_Consumer , getTopicHandle )
538
+ ZEND_METHOD (SimpleKafkaClient_Consumer , getTopicHandle )
539
539
{
540
540
char * topic ;
541
541
size_t topic_len ;
@@ -573,7 +573,7 @@ ZEND_METHOD(Kafka_Consumer, getTopicHandle)
573
573
574
574
/* {{{ proto array SimpleKafkaClient\Consumer::getCommittedOffsets(array $topics, int timeout_ms)
575
575
Retrieve committed offsets for topics+partitions */
576
- ZEND_METHOD (Kafka_Consumer , getCommittedOffsets )
576
+ ZEND_METHOD (SimpleKafkaClient_Consumer , getCommittedOffsets )
577
577
{
578
578
HashTable * htopars = NULL ;
579
579
zend_long timeout_ms ;
@@ -612,7 +612,7 @@ ZEND_METHOD(Kafka_Consumer, getCommittedOffsets)
612
612
613
613
/* {{{ proto array SimpleKafkaClient\Consumer::getOffsetPositions(array $topics)
614
614
Retrieve current offsets for topics+partitions */
615
- ZEND_METHOD (Kafka_Consumer , getOffsetPositions )
615
+ ZEND_METHOD (SimpleKafkaClient_Consumer , getOffsetPositions )
616
616
{
617
617
HashTable * htopars = NULL ;
618
618
object_intern * intern ;
@@ -647,7 +647,7 @@ ZEND_METHOD(Kafka_Consumer, getOffsetPositions)
647
647
648
648
/* {{{ proto void SimpleKafkaClient\Consumer::offsetsForTimes(array $topicPartitions, int $timeout_ms)
649
649
Look up the offsets for the given partitions by timestamp. */
650
- ZEND_METHOD (Kafka_Consumer , offsetsForTimes )
650
+ ZEND_METHOD (SimpleKafkaClient_Consumer , offsetsForTimes )
651
651
{
652
652
HashTable * htopars = NULL ;
653
653
object_intern * intern ;
@@ -684,7 +684,7 @@ ZEND_METHOD(Kafka_Consumer, offsetsForTimes)
684
684
685
685
/* {{{ proto void SimpleKafkaClient\Consumer::queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms)
686
686
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 )
688
688
{
689
689
object_intern * intern ;
690
690
char * topic ;
@@ -726,7 +726,7 @@ void kafka_consumer_init(INIT_FUNC_ARGS) /* {{{ */
726
726
{
727
727
zend_class_entry tmpce ;
728
728
729
- INIT_NS_CLASS_ENTRY (tmpce , "SimpleKafkaClient" , "Consumer" , class_Kafka_Consumer_methods );
729
+ INIT_NS_CLASS_ENTRY (tmpce , "SimpleKafkaClient" , "Consumer" , class_SimpleKafkaClient_Consumer_methods );
730
730
ce = zend_register_internal_class (& tmpce );
731
731
ce -> create_object = kafka_consumer_new ;
732
732
0 commit comments