ekg2  GIT master
oralog.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2006 Szymon Bilinski <ecimon(at)babel.pl>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License Version
8  * 2.1 as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef __oralog_h__
21 #define __oralog_h__
22 
23 #include <time.h>
24 
25 /* VARCHAR2 length is maximum 4000 chars - if you want more then you probably
26  need LOBs (Large OBjects) or something */
27 #define ORACLE_MAX_STRING_LEN 4000
28 
29 int oralog_db_connect(char *db_login, char *db_password, int quiet);
32 
33 int oralog_db_new_status(char *session, char *uid, char *status, char *descr, time_t time, int quiet);
34 int oralog_db_new_msg(char *session, char *sedner_uid, char **rcpts, char *content, time_t recv_time, int quiet);
35 
36 #define DB_CONNECT_NEW_CONNECTION 0
37 #define DB_CONNECT_ALREADY_CONNECTED 1
38 #define DB_CONNECT_ERROR 2
39 
40 #endif
int oralog_db_connect(char *db_login, char *db_password, int quiet)
Definition: oralog.c:101
guint32 time
Definition: sniff_gg.h:168
int oralog_db_disconnect()
Definition: oralog.c:193
int oralog_db_new_status(char *session, char *uid, char *status, char *descr, time_t time, int quiet)
Definition: oralog.c:249
int oralog_is_connected()
Definition: oralog.c:79
int oralog_db_new_msg(char *session, char *sedner_uid, char **rcpts, char *content, time_t recv_time, int quiet)
Definition: oralog.c:390