Browse CVS Repository
Contents of /xoonips/AL/common.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.6 -
( show annotations)
( download)
( as text)
Sat Nov 27 06:30:34 2004 UTC
(19 years, 4 months ago)
by youi
Branch: MAIN
Changes since 1.5: +3 -1 lines
File MIME type: text/x-chdr
RES_NO_SUCH_GROUP, RES_DB_NOT_INITIALIZEDの定義を追加.
| 1 |
/* |
| 2 |
* $Revision: 1.5 $ |
| 3 |
*/ |
| 4 |
#if !defined( COMMON_H ) |
| 5 |
#define COMMON_H |
| 6 |
|
| 7 |
#include<string> |
| 8 |
|
| 9 |
typedef enum { |
| 10 |
RES_OK = 0, |
| 11 |
RES_ERROR, |
| 12 |
RES_DB_NOT_INITIALIZED, |
| 13 |
RES_LOGIN_FAILURE, |
| 14 |
RES_NO_SUCH_SESSION, |
| 15 |
RES_NO_SUCH_USER, |
| 16 |
RES_NO_SUCH_GROUP, |
| 17 |
RES_DB_QUERY_ERROR, |
| 18 |
RES_DB_CONNECT_ERROR, |
| 19 |
RES_DB_INITIALIZE_ERROR |
| 20 |
} result_t; |
| 21 |
|
| 22 |
typedef unsigned int userid_t; |
| 23 |
typedef unsigned int groupid_t; |
| 24 |
|
| 25 |
char* str_dup( const char* ); |
| 26 |
char* setValue( char** , const char* ); |
| 27 |
string intToString( int i ); |
| 28 |
string unsignedIntToString( unsigned int i ); |
| 29 |
|
| 30 |
#endif |
| 31 |
|
| 32 |
|
|