comparison src/mysql/ngx_mysql.h @ 645:4946078f0a79 release-0.3.44

nginx-0.3.44-RELEASE import *) Feature: the "wait" parameter in the "include" SSI command. *) Feature: the Ukrainian and Byelorussian characters were added to koi-win conversion table. *) Bugfix: in the SSI.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 04 May 2006 15:32:46 +0000
parents
children 7cbef16c71a1
comparison
equal deleted inserted replaced
644:610ff734a8cc 645:4946078f0a79
1
2 /*
3 * Copyright (C) Igor Sysoev
4 */
5
6
7 #ifndef _NGX_MYSQL_H_INCLUDED_
8 #define _NGX_MYSQL_H_INCLUDED_
9
10
11 #include <ngx_config.h>
12 #include <ngx_core.h>
13 #include <ngx_event.h>
14
15
16 typedef struct {
17 ngx_peer_connection_t peer;
18 } ngx_mysql_t;
19
20
21 #if (NGX_HAVE_LITTLE_ENDIAN && NGX_HAVE_NONALIGNED && 0)
22
23 #define ngx_m16toh(n) (*(uint32_t *) n & 0x0000ffff)
24 #define ngx_m24toh(n) (*(uint32_t *) n & 0x00ffffff)
25 #define ngx_m32toh(n) *(uint32_t *) n
26
27 #else
28
29 #define ngx_m16toh(n) (n[0] | n[1] << 8)
30 #define ngx_m24toh(n) (n[0] | n[1] << 8 | n[2] << 16)
31 #define ngx_m32toh(n) (n[0] | n[1] << 8 | n[2] << 16 | n[3] << 24)
32
33 #endif
34
35
36 #endif /* _NGX_MYSQL_H_INCLUDED_ */