Idź do dokumentacji tego pliku.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __oralog_h__
00021 #define __oralog_h__
00022
00023 #include <time.h>
00024
00025
00026
00027 #define ORACLE_MAX_STRING_LEN 4000
00028
00029 int oralog_db_connect(char *db_login, char *db_password, int quiet);
00030 int oralog_db_disconnect();
00031 int oralog_is_connected();
00032
00033 int oralog_db_new_status(char *session, char *uid, char *status, char *descr, time_t time, int quiet);
00034 int oralog_db_new_msg(char *session, char *sedner_uid, char **rcpts, char *content, time_t recv_time, int quiet);
00035
00036 #define DB_CONNECT_NEW_CONNECTION 0
00037 #define DB_CONNECT_ALREADY_CONNECTED 1
00038 #define DB_CONNECT_ERROR 2
00039
00040 #endif