summaryrefslogtreecommitdiff
path: root/main/streams/php_stream_context.h
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2004-02-20 08:22:12 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2004-02-20 08:22:12 +0000
commit8c32fa79d71942415b338763a6695bece1a8489e (patch)
treed05342c300367ac5ddbdc3275d47c0e4b13be293 /main/streams/php_stream_context.h
parentb8f7d9f9f5c44d2100aa9691cac1838f57cbfb40 (diff)
downloadphp-git-8c32fa79d71942415b338763a6695bece1a8489e.tar.gz
EXTERN_C wrapping for PHPAPI prototypes
(Zend and main should now be ok)
Diffstat (limited to 'main/streams/php_stream_context.h')
-rw-r--r--main/streams/php_stream_context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h
index eb8b404cfb..3b1eb09943 100644
--- a/main/streams/php_stream_context.h
+++ b/main/streams/php_stream_context.h
@@ -57,6 +57,7 @@ struct _php_stream_context {
int rsrc_id; /* used for auto-cleanup */
};
+BEGIN_EXTERN_C()
PHPAPI void php_stream_context_free(php_stream_context *context);
PHPAPI php_stream_context *php_stream_context_alloc(void);
PHPAPI int php_stream_context_get_option(php_stream_context *context,
@@ -73,6 +74,7 @@ PHPAPI int php_stream_context_del_link(php_stream_context *context,
PHPAPI php_stream_notifier *php_stream_notification_alloc(void);
PHPAPI void php_stream_notification_free(php_stream_notifier *notifier);
+END_EXTERN_C()
/* not all notification codes are implemented */
#define PHP_STREAM_NOTIFY_RESOLVE 1
@@ -90,9 +92,11 @@ PHPAPI void php_stream_notification_free(php_stream_notifier *notifier);
#define PHP_STREAM_NOTIFY_SEVERITY_WARN 1
#define PHP_STREAM_NOTIFY_SEVERITY_ERR 2
+BEGIN_EXTERN_C()
PHPAPI void php_stream_notification_notify(php_stream_context *context, int notifycode, int severity,
char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr TSRMLS_DC);
PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream_context *context);
+END_EXTERN_C()
#define php_stream_notify_info(context, code, xmsg, xcode) do { if ((context) && (context)->notifier) { \
php_stream_notification_notify((context), (code), PHP_STREAM_NOTIFY_SEVERITY_INFO, \