1 /* 2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 13 | Authors: Andrey Hristov <andrey@php.net> | 14 | Ulf Wendel <uw@php.net> | 15 | Georg Richter <georg@php.net> | 16 +----------------------------------------------------------------------+ 17 */ 18 19 #ifndef MYSQLND_CHARSET_H 20 #define MYSQLND_CHARSET_H 21 22 PHPAPI zend_ulong mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const charset, char * newstr, 23 const char * escapestr, const size_t escapestr_len); 24 25 PHPAPI zend_ulong mysqlnd_cset_escape_slashes(const MYSQLND_CHARSET * const cset, char * newstr, 26 const char * escapestr, const size_t escapestr_len); 27 28 struct st_mysqlnd_plugin_charsets 29 { 30 const struct st_mysqlnd_plugin_header plugin_header; 31 struct 32 { 33 const MYSQLND_CHARSET * (*const find_charset_by_nr)(unsigned int charsetnr); 34 const MYSQLND_CHARSET * (*const find_charset_by_name)(const char * const name); 35 zend_ulong (*const escape_quotes)(const MYSQLND_CHARSET * const cset, char * newstr, const char * escapestr, const size_t escapestr_len); 36 zend_ulong (*const escape_slashes)(const MYSQLND_CHARSET * const cset, char * newstr, const char * escapestr, const size_t escapestr_len); 37 } methods; 38 }; 39 40 void mysqlnd_charsets_plugin_register(void); 41 42 #endif /* MYSQLND_CHARSET_H */ 43