X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqres.h;h=ca22aa1815b83c3ad83034f1cc5cdbd9b40aea0e;hp=d2d35d465fa85cdcd73977a5f2e33531b3056366;hb=db9b923fd2f690875eccccd7ff384d504e542611;hpb=9ba862160ca65ed9a1e5eada87dcceba7fbf08d7 diff --git a/src/php_pqres.h b/src/php_pqres.h index d2d35d4..ca22aa1 100644 --- a/src/php_pqres.h +++ b/src/php_pqres.h @@ -54,10 +54,11 @@ typedef struct php_pqres_object { php_pqres_t *intern; } php_pqres_object_t; -STATUS php_pqres_success(PGresult *res TSRMLS_DC); -void php_pqres_init_instance_data(PGresult *res, php_pqconn_object_t *obj, php_pqres_object_t **ptr TSRMLS_DC); -zval *php_pqres_row_to_zval(PGresult *res, unsigned row, php_pqres_fetch_t fetch_type, zval **data_ptr TSRMLS_DC); -zval *php_pqres_typed_zval(php_pqres_t *res, char *val, size_t len, Oid typ TSRMLS_DC); +extern STATUS php_pqres_success(PGresult *res TSRMLS_DC); +extern void php_pqres_init_instance_data(PGresult *res, php_pqconn_object_t *obj, php_pqres_object_t **ptr TSRMLS_DC); +extern zval *php_pqres_row_to_zval(PGresult *res, unsigned row, php_pqres_fetch_t fetch_type, zval **data_ptr TSRMLS_DC); +extern zval *php_pqres_typed_zval(php_pqres_t *res, char *val, size_t len, Oid typ TSRMLS_DC); +extern php_pqres_fetch_t php_pqres_fetch_type(php_pqres_t *res); #include "php_pq_object.h" #include "php_pqconn_event.h" @@ -70,11 +71,11 @@ zval *php_pqres_typed_zval(php_pqres_t *res, char *val, size_t len, Oid typ TSRM } \ } while(0) -zend_class_entry *php_pqres_class_entry; -zend_object_value php_pqres_create_object_ex(zend_class_entry *ce, php_pqres_t *intern, php_pqres_object_t **ptr TSRMLS_DC); +extern zend_class_entry *php_pqres_class_entry; +extern zend_object_value php_pqres_create_object_ex(zend_class_entry *ce, php_pqres_t *intern, php_pqres_object_t **ptr TSRMLS_DC); -PHP_MINIT_FUNCTION(pqres); -PHP_MSHUTDOWN_FUNCTION(pqres); +extern PHP_MINIT_FUNCTION(pqres); +extern PHP_MSHUTDOWN_FUNCTION(pqres); #endif