Skip to content

Commit

Permalink
Add AMQPBasicProperties class
Browse files Browse the repository at this point in the history
  • Loading branch information
pinepain committed Mar 1, 2016
1 parent ca28cd7 commit da174f8
Show file tree
Hide file tree
Showing 17 changed files with 1,117 additions and 648 deletions.
2 changes: 2 additions & 0 deletions amqp.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "amqp_queue.h"
#include "amqp_exchange.h"
#include "amqp_envelope.h"
#include "amqp_basic_properties.h"
#include "amqp_connection_resource.h"


Expand Down Expand Up @@ -118,6 +119,7 @@ static PHP_MINIT_FUNCTION(amqp) /* {{{ */
PHP_MINIT(amqp_channel)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(amqp_queue)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(amqp_exchange)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(amqp_basic_properties)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(amqp_envelope)(INIT_FUNC_ARGS_PASSTHRU);

/* Class Exceptions */
Expand Down
563 changes: 563 additions & 0 deletions amqp_basic_properties.c

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions amqp_basic_properties.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Alexandre Kalendarev akalend@mail.ru Copyright (c) 2009-2010 |
| Lead: |
| - Pieter de Zwart |
| Maintainers: |
| - Brad Rodriguez |
| - Jonathan Tansavatdi |
+----------------------------------------------------------------------+
*/

#include "php.h"
#include "php_amqp.h"

extern zend_class_entry *amqp_basic_properties_class_entry;

void parse_amqp_table(amqp_table_t *table, zval *result);
void php_amqp_basic_properties_extract(amqp_basic_properties_t *p, zval *obj TSRMLS_DC);


void php_amqp_basic_properties_convert_to_zval(amqp_basic_properties_t *props, zval *obj TSRMLS_DC);
void php_amqp_basic_properties_set_empty_headers(zval *obj TSRMLS_DC);


PHP_MINIT_FUNCTION(amqp_basic_properties);


/*
*Local variables:
*tab-width: 4
*c-basic-offset: 4
*End:
*vim600: noet sw=4 ts=4 fdm=marker
*vim<600: noet sw=4 ts=4
*/
Loading

0 comments on commit da174f8

Please sign in to comment.