/* Open the URI and return the whole string */
if (strcasecmp(string_key, "get_all") == 0) {
- assign_handle = &XSLT_SCHEME(handle).get_all;
+ assign_handle = &XSLT_SCHEME(handle).sh_get_all;
}
/* Open the URI and return a handle */
else if (strcasecmp(string_key, "open") == 0) {
- assign_handle = &XSLT_SCHEME(handle).open;
+ assign_handle = &XSLT_SCHEME(handle).sh_open;
}
/* Retrieve data from the URI */
else if (strcasecmp(string_key, "get") == 0) {
- assign_handle = &XSLT_SCHEME(handle).get;
+ assign_handle = &XSLT_SCHEME(handle).sh_get;
}
/* Save data to the URI */
else if (strcasecmp(string_key, "put") == 0) {
- assign_handle = &XSLT_SCHEME(handle).put;
+ assign_handle = &XSLT_SCHEME(handle).sh_put;
}
/* Close the URI */
else if (strcasecmp(string_key, "close") == 0) {
- assign_handle = &XSLT_SCHEME(handle).close;
+ assign_handle = &XSLT_SCHEME(handle).sh_close;
}
/* Invalid handler name */
else {
}
/* Free Scheme handlers */
- XSLT_FUNCH_FREE(XSLT_SCHEME(handle).get_all);
- XSLT_FUNCH_FREE(XSLT_SCHEME(handle).open);
- XSLT_FUNCH_FREE(XSLT_SCHEME(handle).get);
- XSLT_FUNCH_FREE(XSLT_SCHEME(handle).put);
- XSLT_FUNCH_FREE(XSLT_SCHEME(handle).close);
+ XSLT_FUNCH_FREE(XSLT_SCHEME(handle).sh_get_all);
+ XSLT_FUNCH_FREE(XSLT_SCHEME(handle).sh_open);
+ XSLT_FUNCH_FREE(XSLT_SCHEME(handle).sh_get);
+ XSLT_FUNCH_FREE(XSLT_SCHEME(handle).sh_put);
+ XSLT_FUNCH_FREE(XSLT_SCHEME(handle).sh_close);
/* Free SAX handlers */
XSLT_FUNCH_FREE(XSLT_SAX(handle).doc_start);
XSLT_FUNCH_FREE(XSLT_SAX(handle).element_start);
/* If the scheme handler get all function doesn't
exist, exit out */
- if (!XSLT_SCHEME(handle).get_all) {
+ if (!XSLT_SCHEME(handle).sh_get_all) {
return 0;
}
ZVAL_STRING(argv[1], (char *) scheme, 1);
ZVAL_STRING(argv[2], (char *) rest, 1);
- xslt_call_function("scheme get all", XSLT_SCHEME(handle).get_all, handle->object,
+ xslt_call_function("scheme get all", XSLT_SCHEME(handle).sh_get_all, handle->object,
3, argv, &retval);
if (!retval) {
{
/* If one of the functions is exists, then scheme
handlers are registered */
- if (XSLT_SCHEME(handle).get_all ||
- XSLT_SCHEME(handle).open ||
- XSLT_SCHEME(handle).get ||
- XSLT_SCHEME(handle).put ||
- XSLT_SCHEME(handle).close)
+ if (XSLT_SCHEME(handle).sh_get_all ||
+ XSLT_SCHEME(handle).sh_open ||
+ XSLT_SCHEME(handle).sh_get ||
+ XSLT_SCHEME(handle).sh_put ||
+ XSLT_SCHEME(handle).sh_close)
return 1;
/* otherwise, no cigar */
else
TSRMLS_FETCH();
/* If no open handler exists, let's exit */
- if (!XSLT_SCHEME(handle).open) {
+ if (!XSLT_SCHEME(handle).sh_open) {
return 0;
}
ZVAL_STRING(argv[2], (char *) rest, 1);
/* Call the function */
- xslt_call_function("scheme open", XSLT_SCHEME(handle).open, handle->object,
+ xslt_call_function("scheme open", XSLT_SCHEME(handle).sh_open, handle->object,
3, argv, &retval);
if (!retval) {
TSRMLS_FETCH();
/* If no get handler exists, let's exit */
- if (!XSLT_SCHEME(handle).get) {
+ if (!XSLT_SCHEME(handle).sh_get) {
return 0;
}
ZVAL_STRINGL(argv[2], buffer, *byte_count, 0);
/* Call the function */
- xslt_call_function("scheme get", XSLT_SCHEME(handle).get, handle->object,
+ xslt_call_function("scheme get", XSLT_SCHEME(handle).sh_get, handle->object,
3, argv, &retval);
if (!retval) {
TSRMLS_FETCH();
/* If no put handler exists, let's exit */
- if (!XSLT_SCHEME(handle).put) {
+ if (!XSLT_SCHEME(handle).sh_put) {
return 0;
}
ZVAL_STRINGL(argv[2], (char *) buffer, *byte_count, 1);
/* Call the scheme put function already */
- xslt_call_function("scheme put", XSLT_SCHEME(handle).put, handle->object,
+ xslt_call_function("scheme put", XSLT_SCHEME(handle).sh_put, handle->object,
3, argv, &retval);
if (!retval) {
TSRMLS_FETCH();
/* if no close handler exists, exit */
- if (!XSLT_SCHEME(handle).close) {
+ if (!XSLT_SCHEME(handle).sh_close) {
return 0;
}
zend_list_addref(fd);
/* Call the scheme handler close function */
- xslt_call_function("scheme close", XSLT_SCHEME(handle).close, handle->object,
+ xslt_call_function("scheme close", XSLT_SCHEME(handle).sh_close, handle->object,
2, argv, &retval);
if (!retval) {