perlvdb_conv.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _PERLVDB_CONV_H
00028 #define _PERLVDB_CONV_H
00029
00030 #include "../../db/db_op.h"
00031 #include "../../db/db_val.h"
00032 #include "../../db/db_key.h"
00033
00034 #include "perlvdb.h"
00035
00036 #include <XSUB.h>
00037
00038 #define PERL_CLASS_VALUE "OpenSER::VDB::Value"
00039 #define PERL_CLASS_PAIR "OpenSER::VDB::Pair"
00040 #define PERL_CLASS_REQCOND "OpenSER::VDB::ReqCond"
00041
00042 #define PERL_CONSTRUCTOR_NAME "new"
00043
00044
00045
00046
00047 AV *pairs2perlarray(db_key_t* keys, db_val_t* vals, int n);
00048
00049
00050
00051
00052 AV *conds2perlarray(db_key_t* keys, db_op_t* ops, db_val_t* vals, int n);
00053
00054
00055
00056
00057 AV *keys2perlarray(db_key_t* keys, int n);
00058
00059 SV *val2perlval(db_val_t* val);
00060 SV *pair2perlpair(db_key_t key, db_val_t* val);
00061 SV *cond2perlcond(db_key_t key, db_op_t op, db_val_t* val);
00062
00063 int perlresult2dbres(SV *perlres, db_res_t **r);
00064
00065 #endif