1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
/*
* wirpc.c
*
* $Id$
*
* Global RPC call hooks
*
* This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
* project.
*
* Copyright (C) 1998-2018 OpenLink Software
*
* This project is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License, dated June 1991.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include "Dk.h"
SERVICE_4 (s_sql_login, _sqlc, "SCON", DA_FUTURE_REQUEST,
DV_LONG_INT, /* return type */
DV_C_STRING, 1,
DV_SHORT_STRING, 1,
DV_C_STRING, 1,
DV_ARRAY_OF_POINTER, 1); /* params */
SERVICE_4 (s_sql_prepare, _sprep, "PREP", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_SHORT_STRING, 0,
DV_SHORT_STRING, 0,
DV_LONG_INT, 1,
DV_ARRAY_OF_LONG, 1);
SERVICE_6 (s_sql_execute, _sexec, "EXEC", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_SHORT_STRING, 0,/* id */
DV_SHORT_STRING, 1,/* text */
DV_SHORT_STRING, 1,/* cursor name */
DV_ARRAY_OF_POINTER, 0,/* params */
DV_ARRAY_OF_POINTER, 1,/* current ofs */
DV_ARRAY_OF_LONG, 1);/* options */
SERVICE_2 (s_sql_fetch, sftc, "FTCH", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_SHORT_STRING, 0,
DV_LONG_INT, 1);
SERVICE_2 (s_sql_transact, _strx, "TRXC", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_LONG_INT, 1,
DV_LONG_INT, 1); /* currently not used */
SERVICE_2 (s_sql_free_stmt, _frst, "FRST", DA_FUTURE_REQUEST,
DV_LONG_INT, /* return type */
DV_SHORT_STRING, 0,
DV_LONG_INT, 1);
SERVICE_5 (s_get_data, _sgbt, "GETD", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_SHORT_STRING, 0,/* stmt */
DV_LONG_INT, 1,/* current_of */
DV_LONG_INT, 1,/* nth_col */
DV_LONG_INT, 1,/* how_much */
DV_LONG_INT, 1);/* from_byte */
SERVICE_9 (s_get_data_ac , _sgbt2, "GETDA", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_LONG_INT, 1,/* page no */
DV_LONG_INT, 1,/* how_much */
DV_LONG_INT, 1,/* pos_in_page */
DV_LONG_INT, 1,/* key_id */
DV_LONG_INT, 1,/* frag_no */
DV_LONG_INT, 1,/* page dir 1st page */
DV_LONG_STRING, 1,/* the array of page nos */
DV_LONG_INT, 1,/* is_wide? */
DV_LONG_INT, 1);/* blob timestamp */
/* Replication */
SERVICE_5 (s_resync_acct, _sra, "RSNC", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_C_STRING, 0,/* account */
DV_LONG_INT, 1,/* level */
DV_SHORT_STRING, 0,/* subscriber name */
DV_C_STRING, 0,/* uid, auth hash */
DV_SHORT_STRING, 0);
SERVICE_4 (s_resync_replay, _srl, "RSRP", DA_FUTURE_REQUEST,
DV_LONG_INT, /* return type */
DV_SHORT_STRING, 0,/* account */
DV_SHORT_STRING, 0,/* subscriber name */
DV_SHORT_STRING, 0,/* uid, auth hash */
DV_SHORT_STRING, 0);
SERVICE_6 (s_sql_extended_fetch, _extf, "EXTF", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER, /* return type */
DV_C_STRING, 0,
DV_LONG_INT, 1,
DV_LONG_INT, 1,
DV_LONG_INT, 1,
DV_LONG_INT, 1,
0, 1); /* bookmark - make it unknown as it's sometimes DV_ARRAY_OF_POINTER, sometimes DV_INT */
SERVICE_2 (s_sql_tp_transact, _tp, "TPTRX", DA_FUTURE_REQUEST,
DV_SEND_NO_ANSWER,
DV_LONG_INT, 1,
DV_STRING, 1);
/* PL debugger */
SERVICE_2 (s_pl_debug, _pld, "PLDBG", DA_FUTURE_REQUEST,
DV_LONG_INT, /* return type */
DV_C_STRING, 1,
DV_C_STRING, 1);
|