Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.14 - (hide annotations) (download) (as text)
Wed Feb 9 02:14:15 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217
Changes since 1.13: +6 -1 lines
File MIME type: text/x-chdr
・initializeDB()にdbtype引数を追加(SQLite用).

1 youi 1.2 /*
2 aga 1.14 * $Revision: 1.13 $
3 youi 1.2 */
4 youi 1.1 #if !defined( COMMON_H )
5     #define COMMON_H
6 youi 1.2
7 youi 1.13 #include <openssl/md5.h>
8 aga 1.3 #include<string>
9 youi 1.13
10 aga 1.9 using namespace std;
11 youi 1.2 typedef enum {
12     RES_OK = 0,
13     RES_ERROR,
14 youi 1.6 RES_DB_NOT_INITIALIZED,
15 aga 1.5 RES_LOGIN_FAILURE,
16 youi 1.2 RES_NO_SUCH_SESSION,
17     RES_NO_SUCH_USER,
18 youi 1.6 RES_NO_SUCH_GROUP,
19 youi 1.2 RES_DB_QUERY_ERROR,
20     RES_DB_CONNECT_ERROR,
21 aga 1.8 RES_DB_INITIALIZE_ERROR,
22 youi 1.11 RES_NO_SUCH_ITEM,
23 aga 1.10 RES_NO_WRITE_ACCESS_RIGHT,
24     RES_NO_READ_ACCESS_RIGHT,
25 aga 1.8
26     RES_PHP_NONREF=1000
27 youi 1.2 } result_t;
28 aga 1.14
29     typedef enum {
30     DBTYPE_MYSQL = 1,
31     DBTYPE_SQLITE = 2
32     } dbtype_t;
33 youi 1.1
34     char* str_dup( const char* );
35     char* setValue( char** , const char* );
36 aga 1.3 string intToString( int i );
37 aga 1.4 string unsignedIntToString( unsigned int i );
38 youi 1.13
39     #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH*2+1)
40    
41     char* md5str( char str[MD5_DIGEST_STRING_LENGTH], unsigned char* data, int len );
42 youi 1.1
43     #endif
44    
45    

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26