Browse CVS Repository
Contents of /xoonips/AL/common.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.10 -
( show annotations)
( download)
( as text)
Fri Jan 14 10:36:59 2005 UTC
(19 years, 2 months ago)
by aga
Branch: MAIN
Changes since 1.9: +6 -1 lines
File MIME type: text/x-chdr
・index関係の処理を追加.
・insertAccountでprivate indexを作成するよう修正.
・insertGroupでgroup index を作成するよう修正.
| 1 |
/* |
| 2 |
* $Revision: 1.9 $ |
| 3 |
*/ |
| 4 |
#if !defined( COMMON_H ) |
| 5 |
#define COMMON_H |
| 6 |
|
| 7 |
#include<string> |
| 8 |
using namespace std; |
| 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 |
RES_NO_WRITE_ACCESS_RIGHT, |
| 21 |
RES_NO_READ_ACCESS_RIGHT, |
| 22 |
|
| 23 |
RES_PHP_NONREF=1000 |
| 24 |
} result_t; |
| 25 |
|
| 26 |
typedef int userid_t; |
| 27 |
typedef int groupid_t; |
| 28 |
typedef int itemid_t; |
| 29 |
typedef int itemtypeid_t; |
| 30 |
typedef int indexid_t; |
| 31 |
|
| 32 |
char* str_dup( const char* ); |
| 33 |
char* setValue( char** , const char* ); |
| 34 |
string intToString( int i ); |
| 35 |
string unsignedIntToString( unsigned int i ); |
| 36 |
|
| 37 |
#endif |
| 38 |
|
| 39 |
|
|