asynch.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Oracle module interface
00005  *
00006  * Copyright (C) 2007,2008 TRUNK MOBILE
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version
00014  *
00015  * Kamailio is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *
00024  * History:
00025  * --------
00026  */
00027 
00028 #ifndef ASYNCH_H
00029 #define ASYNCH_H
00030 
00031 #include <oci.h>
00032 #include "ora_con.h"
00033 
00034 
00035 /*
00036  * parse timeout value for operation in syntax: nnn.mmm (sec/ms)
00037  */
00038 int set_timeout(unsigned type, const char* val);
00039 
00040 /*
00041  * parse timeout value for reconnect in syntax: nnn.mmm (sec/ms)
00042  */
00043 int set_reconnect(unsigned type, const char* val);
00044 
00045 
00046 /*
00047  * start timelimited operation (if work in synch mode return SUCCESS)
00048  */
00049 sword begin_timelimit(ora_con_t* con, int connect);
00050 
00051 /*
00052  * check completion of timelimited operation (if work in synch mode return 0)
00053  */
00054 int wait_timelimit(ora_con_t* con, sword status);
00055 
00056 /*
00057  * close current timelimited operation and disconnect if timeout occured
00058  * return true only if work in asynch mode and timeout detect
00059  */
00060 int done_timelimit(ora_con_t* con, sword status);
00061 
00062 #endif /* ASYNCH_H */

Generated on Thu May 17 12:00:24 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6