ekg2
plugins/logsoracle/oralog.h
Idź do dokumentacji tego pliku.
00001 /* $Id$ */
00002 
00003 /*
00004  *  (C) Copyright 2006 Szymon Bilinski <ecimon(at)babel.pl>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU Lesser General Public License Version
00008  *  2.1 as published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Lesser General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Lesser General Public
00016  *  License along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 #ifndef __oralog_h__
00021 #define __oralog_h__
00022 
00023 #include <time.h>
00024 
00025 /* VARCHAR2 length is maximum 4000 chars - if you want more then you probably
00026    need LOBs (Large OBjects) or something */
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
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje