File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / win32 / php_win32_globals.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_17p0, HEAD
php 5.4.3+patches

    1: /*
    2:    +----------------------------------------------------------------------+
    3:    | PHP Version 5                                                        |
    4:    +----------------------------------------------------------------------+
    5:    | Copyright (c) 1997-2012 The PHP Group                                |
    6:    +----------------------------------------------------------------------+
    7:    | This source file is subject to version 3.01 of the PHP license,      |
    8:    | that is bundled with this package in the file LICENSE, and is        |
    9:    | available through the world-wide-web at the following url:           |
   10:    | http://www.php.net/license/3_01.txt                                  |
   11:    | If you did not receive a copy of the PHP license and are unable to   |
   12:    | obtain it through the world-wide-web, please send a note to          |
   13:    | license@php.net so we can mail you a copy immediately.               |
   14:    +----------------------------------------------------------------------+
   15:    | Author: Wez Furlong <wez@php.net>                                    |
   16:    +----------------------------------------------------------------------+
   17: */
   18: 
   19: /* $Id: php_win32_globals.h,v 1.1.1.2 2012/05/29 12:34:34 misho Exp $ */
   20: 
   21: #ifndef PHP_WIN32_GLOBALS_H
   22: #define PHP_WIN32_GLOBALS_H
   23: 
   24: /* misc globals for thread-safety under win32 */
   25: 
   26: typedef struct _php_win32_core_globals php_win32_core_globals;
   27: 
   28: #ifdef ZTS
   29: # define PW32G(v)		TSRMG(php_win32_core_globals_id, php_win32_core_globals*, v)
   30: extern PHPAPI int php_win32_core_globals_id;
   31: #else
   32: # define PW32G(v)		(the_php_win32_core_globals.v)
   33: extern PHPAPI struct _php_win32_core_globals the_php_win32_core_globals;
   34: #endif
   35: 
   36: struct _php_win32_core_globals {
   37: 	/* syslog */
   38: 	char *log_header;
   39: 	HANDLE log_source;
   40: 
   41: 	/* time */
   42: 	struct timeval starttime;
   43: 	__int64			lasttime, freq;
   44: 
   45: 	HKEY       registry_key;
   46: 	HANDLE     registry_event;
   47: 	HashTable *registry_directories;
   48: };
   49: 
   50: void php_win32_core_globals_ctor(void *vg TSRMLS_DC);
   51: void php_win32_core_globals_dtor(void *vg TSRMLS_DC);
   52: PHP_RSHUTDOWN_FUNCTION(win32_core_globals);
   53: 
   54: #endif
   55: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>