Line
Link Here
|
0 |
-- ./src/libvirt-php.c |
0 |
++ ./src/libvirt-php.c |
Lines 1615-1621
Link Here
|
1615 |
#else |
1615 |
#else |
1616 |
PHP_FUNCTION(libvirt_node_get_cpu_stats) |
1616 |
PHP_FUNCTION(libvirt_node_get_cpu_stats) |
1617 |
{ |
1617 |
{ |
1618 |
set_error("Function is not supported by libvirt, support has been added in libvirt 0.9.3"); |
1618 |
set_error("Function is not supported by libvirt, support has been added in libvirt 0.9.3" TSRMLS_CC); |
1619 |
RETURN_FALSE; |
1619 |
RETURN_FALSE; |
1620 |
} |
1620 |
} |
1621 |
#endif |
1621 |
#endif |
Lines 1718-1724
Link Here
|
1718 |
#else |
1718 |
#else |
1719 |
PHP_FUNCTION(libvirt_node_get_cpu_stats_for_each_cpu) |
1719 |
PHP_FUNCTION(libvirt_node_get_cpu_stats_for_each_cpu) |
1720 |
{ |
1720 |
{ |
1721 |
set_error("Function is not supported by libvirt, support has been added in libvirt 0.9.3"); |
1721 |
set_error("Function is not supported by libvirt, support has been added in libvirt 0.9.3" TSRMLS_CC); |
1722 |
RETURN_FALSE; |
1722 |
RETURN_FALSE; |
1723 |
} |
1723 |
} |
1724 |
#endif |
1724 |
#endif |
Lines 1775-1781
Link Here
|
1775 |
#else |
1775 |
#else |
1776 |
PHP_FUNCTION(libvirt_node_get_mem_stats) |
1776 |
PHP_FUNCTION(libvirt_node_get_mem_stats) |
1777 |
{ |
1777 |
{ |
1778 |
set_error("Function is not supported by libvirt, support has been added in libvirt 0.9.3"); |
1778 |
set_error("Function is not supported by libvirt, support has been added in libvirt 0.9.3" TSRMLS_CC); |
1779 |
RETURN_FALSE; |
1779 |
RETURN_FALSE; |
1780 |
} |
1780 |
} |
1781 |
#endif |
1781 |
#endif |
Lines 3168-3174
Link Here
|
3168 |
#else |
3168 |
#else |
3169 |
PHP_FUNCTION(libvirt_domain_get_screenshot_api) |
3169 |
PHP_FUNCTION(libvirt_domain_get_screenshot_api) |
3170 |
{ |
3170 |
{ |
3171 |
set_error("Function is not supported by libvirt, you need at least libvirt 0.9.2 to support this function"); |
3171 |
set_error("Function is not supported by libvirt, you need at least libvirt 0.9.2 to support this function" TSRMLS_CC); |
3172 |
RETURN_FALSE; |
3172 |
RETURN_FALSE; |
3173 |
} |
3173 |
} |
3174 |
#endif |
3174 |
#endif |
Lines 5453-5465
Link Here
|
5453 |
GET_DOMAIN_FROM_ARGS("rrl|sl",&zdomain,&zdconn,&flags,&dname,&dname_len,&bandwidth); |
5453 |
GET_DOMAIN_FROM_ARGS("rrl|sl",&zdomain,&zdconn,&flags,&dname,&dname_len,&bandwidth); |
5454 |
|
5454 |
|
5455 |
if ((domain->domain == NULL) || (domain->conn->conn == NULL)) { |
5455 |
if ((domain->domain == NULL) || (domain->conn->conn == NULL)) { |
5456 |
set_error("Domain object is not valid"); |
5456 |
set_error("Domain object is not valid" TSRMLS_CC); |
5457 |
RETURN_FALSE; |
5457 |
RETURN_FALSE; |
5458 |
} |
5458 |
} |
5459 |
|
5459 |
|
5460 |
ZEND_FETCH_RESOURCE(dconn, php_libvirt_connection*, &zdconn, -1, PHP_LIBVIRT_CONNECTION_RES_NAME, le_libvirt_connection); |
5460 |
ZEND_FETCH_RESOURCE(dconn, php_libvirt_connection*, &zdconn, -1, PHP_LIBVIRT_CONNECTION_RES_NAME, le_libvirt_connection); |
5461 |
if ((dconn==NULL) || (dconn->conn==NULL)) { |
5461 |
if ((dconn==NULL) || (dconn->conn==NULL)) { |
5462 |
set_error("Destination connection object is not valid"); |
5462 |
set_error("Destination connection object is not valid" TSRMLS_CC); |
5463 |
RETURN_FALSE; |
5463 |
RETURN_FALSE; |
5464 |
} |
5464 |
} |
5465 |
|
5465 |
|