Rename stomp_new by stomp_init

v1.1
Pierrick Charron 2009-12-27 18:53:12 +00:00
parent 26427f95cd
commit d1934cf31b
3 changed files with 4 additions and 4 deletions

View File

@ -453,7 +453,7 @@ PHP_FUNCTION(stomp_connect)
}
}
stomp = stomp_new(url_parts->host, url_parts->port ? url_parts->port : 61613, STOMP_G(read_timeout_sec), STOMP_G(read_timeout_usec));
stomp = stomp_init(url_parts->host, url_parts->port ? url_parts->port : 61613, STOMP_G(read_timeout_sec), STOMP_G(read_timeout_usec));
php_url_free(url_parts);
#if HAVE_STOMP_SSL

View File

@ -33,9 +33,9 @@
ZEND_EXTERN_MODULE_GLOBALS(stomp);
extern zend_class_entry *stomp_ce_exception;
/* {{{ stomp_new
/* {{{ stomp_init
*/
stomp_t *stomp_new(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec)
stomp_t *stomp_init(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec)
{
/* Memory allocation for the stomp */
stomp_t *stomp = (stomp_t *) emalloc(sizeof(stomp_t));

View File

@ -60,7 +60,7 @@ typedef struct _stomp_frame {
int body_length;
} stomp_frame_t;
stomp_t *stomp_new(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec);
stomp_t *stomp_init(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec);
int stomp_connect(stomp_t *stomp TSRMLS_DC);
void stomp_close(stomp_t *stomp);
int stomp_send(stomp_t *connection, stomp_frame_t *frame TSRMLS_DC);