intecture-api 0.3.2

API component for Intecture infrastructure. Intecture is the developer friendly, multi-lingual configuration management tool.
Documentation
/*
 Copyright 2015-2017 Intecture Developers. See the COPYRIGHT file at the
 top-level directory of this distribution and at
 https://intecture.io/COPYRIGHT.

 Licensed under the Mozilla Public License 2.0 <LICENSE or
 https://www.tldrlegal.com/l/mpl-2.0>. This file may not be copied,
 modified, or distributed except according to those terms.
*/

#ifndef HOST_H
#define HOST_H

#include <php.h>
#include <inapi.h>

PHP_METHOD(Host, __construct);
PHP_METHOD(Host, connect);
PHP_METHOD(Host, connect_endpoint);
PHP_METHOD(Host, connect_payload);
PHP_METHOD(Host, data);

typedef struct _php_host {
    Host *host;
    zval data;
    zend_object std;
} php_host;

void unwrap_value(void *value, enum DataType dtype, zval *return_value TSRMLS_DC);
php_host *check_host(zval *phost TSRMLS_DC);

#endif