perlvdb.h

Go to the documentation of this file.
00001 /* 
00002  * $Id: perlvdb.h 770 2007-01-22 10:16:34Z bastian $
00003  *
00004  * Perl virtual database module interface
00005  *
00006  * Copyright (C) 2007 Collax GmbH
00007  *                    (Bastian Friedrich <bastian.friedrich@collax.com>)
00008  *
00009  * This file is part of Kamailio, a free SIP server.
00010  *
00011  * Kamailio is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version
00015  *
00016  * Kamailio is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License 
00022  * along with this program; if not, write to the Free Software 
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  */
00026 
00027 #ifndef _PERLVDB_H
00028 #define _PERLVDB_H 
00029 
00030 
00031 #include "../../db/db.h"
00032 #include "../../sr_module.h"
00033 #include "../../mem/shm_mem.h"
00034 #include "../../mem/mem.h"
00035 #include "../../dprint.h"
00036 
00037 /* lock_ops.h defines union semun, perl does not need to redefine it */
00038 #ifdef USE_SYSV_SEM
00039 # define HAS_UNION_SEMUN
00040 #endif
00041 
00042 #undef OP_LT
00043 #undef OP_GT
00044 #undef OP_EQ
00045 
00046 #undef load_module
00047 
00048 #include <EXTERN.h>
00049 #include <perl.h>
00050 
00051 #include "perlvdb_conv.h"
00052 #include "perlvdb_oohelpers.h"
00053 #include "perlvdbfunc.h"
00054 
00055 #define PERL_VDB_BASECLASS "OpenSER::VDB"
00056 
00057 #define PERL_VDB_USETABLEMETHOD  "use_table"
00058 #define PERL_VDB_INSERTMETHOD "_insert"
00059 #define PERL_VDB_REPLACEMETHOD   "_replace"
00060 #define PERL_VDB_UPDATEMETHOD "_update"
00061 #define PERL_VDB_DELETEMETHOD "_delete"
00062 #define PERL_VDB_QUERYMETHOD  "_query"
00063 
00064 #define PERL_VDB_COLDEFSMETHOD   "coldefs"
00065 #define PERL_VDB_TYPEMETHOD   "type"
00066 #define PERL_VDB_NAMEMETHOD   "name"
00067 #define PERL_VDB_ROWSMETHOD   "rows"
00068 #define PERL_VDB_DATAMETHOD   "data"
00069 
00070 extern PerlInterpreter* my_perl;
00071 
00072 extern SV* vdbmod;
00073 
00074 #endif /* _PERLVDB_H */

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