1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2018 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 at 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: George Wang <gwang@litespeedtech.com> | 16 +----------------------------------------------------------------------+ 17 */ 18 /* 19 Copyright (c) 2002-2018, Lite Speed Technologies Inc. 20 All rights reserved. 21 22 Redistribution and use in source and binary forms, with or without 23 modification, are permitted provided that the following conditions are 24 met: 25 26 * Redistributions of source code must retain the above copyright 27 notice, this list of conditions and the following disclaimer. 28 * Redistributions in binary form must reproduce the above 29 copyright notice, this list of conditions and the following 30 disclaimer in the documentation and/or other materials provided 31 with the distribution. 32 * Neither the name of the Lite Speed Technologies Inc nor the 33 names of its contributors may be used to endorse or promote 34 products derived from this software without specific prior 35 written permission. 36 37 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 38 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 39 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 40 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 41 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 42 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 43 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 44 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 45 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 46 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 47 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 48 */ 49 50 #ifndef _LSCRIU_H_ 51 #define _LSCRIU_H_ 52 53 #if defined (c_plusplus) || defined (__cplusplus) 54 extern "C" { 55 #endif 56 57 // return 1 if CRIU is available, return 0 if CRIU is not available 58 int LSCRIU_Init(void); 59 60 void LSCRIU_inc_req_procssed(void); 61 62 63 #if defined (c_plusplus) || defined (__cplusplus) 64 } 65 #endif 66 67 #endif // LSCRIU_ 68