1 /* 2 +----------------------------------------------------------------------+ 3 | php-rdkafka | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2016 Arnaud Le Blanc | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Author: Arnaud Le Blanc <arnaud.lb@gmail.com> | 16 +----------------------------------------------------------------------+ 17 */ 18 19 #include "zeval.h" 20 21 typedef struct _kafka_topic_object { 22 #if PHP_MAJOR_VERSION < 7 23 zend_object std; 24 #endif 25 rd_kafka_topic_t *rkt; 26 zeval zrk; 27 #if PHP_MAJOR_VERSION >= 7 28 zend_object std; 29 #endif 30 } kafka_topic_object; 31 32 void kafka_topic_minit(TSRMLS_D); 33 kafka_topic_object * get_kafka_topic_object(zval *zrkt TSRMLS_DC); 34 35 extern zend_class_entry * ce_kafka_consumer_topic; 36 extern zend_class_entry * ce_kafka_kafka_consumer_topic; 37 extern zend_class_entry * ce_kafka_producer_topic; 38 extern zend_class_entry * ce_kafka_topic; 39